Class: JrubyScala::CoreExt::Proc::ScalaFunction
- Inherits:
-
Object
- Object
- JrubyScala::CoreExt::Proc::ScalaFunction
- Defined in:
- lib/jruby_scala/core_ext/proc/scala_function.rb
Instance Method Summary collapse
- #apply(*args) ⇒ Object
-
#initialize(delegate) ⇒ ScalaFunction
constructor
A new instance of ScalaFunction.
Constructor Details
#initialize(delegate) ⇒ ScalaFunction
Returns a new instance of ScalaFunction.
5 6 7 |
# File 'lib/jruby_scala/core_ext/proc/scala_function.rb', line 5 def initialize(delegate) @delegate = delegate end |
Instance Method Details
#apply(*args) ⇒ Object
9 10 11 |
# File 'lib/jruby_scala/core_ext/proc/scala_function.rb', line 9 def apply(*args) @delegate.call(*args) end |