diff options
author | Christopher Vogt <oss.nsp@cvogt.org> | 2017-03-20 22:09:38 -0400 |
---|---|---|
committer | Christopher Vogt <oss.nsp@cvogt.org> | 2017-03-27 19:56:13 -0400 |
commit | bba2abe7ee38b8903822a07578c46466923d13ed (patch) | |
tree | a357fb8def6f58a9ea9a37411f3f5640dcb525fe /libraries/reflect/StaticMethod.scala | |
parent | d2f8cade709b7d55a93e18592b6e38247d648ca9 (diff) | |
download | cbt-bba2abe7ee38b8903822a07578c46466923d13ed.tar.gz cbt-bba2abe7ee38b8903822a07578c46466923d13ed.tar.bz2 cbt-bba2abe7ee38b8903822a07578c46466923d13ed.zip |
start modularizing cbt into libraries
this extracts certain parts of cbt into stand-alone libraries, which can
be published to maven and used outside of cbt.
This also adds scalariform for these parts of the code.
This slows down cbt’s own build a lot because of the number of projects
involved! So we’ll follow this by a bunch of performance tweak commits.
Diffstat (limited to 'libraries/reflect/StaticMethod.scala')
-rw-r--r-- | libraries/reflect/StaticMethod.scala | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libraries/reflect/StaticMethod.scala b/libraries/reflect/StaticMethod.scala new file mode 100644 index 0000000..e2a0d07 --- /dev/null +++ b/libraries/reflect/StaticMethod.scala @@ -0,0 +1,4 @@ +package cbt.reflect +case class StaticMethod[Arg, Result]( function: Arg => Result, name: String ) extends ( Arg => Result ) { + def apply( arg: Arg ): Result = function( arg ) +} |