Class: JrubyScala::CoreExt::Proc::ScalaFunction

Inherits:
Object
  • Object
show all
Defined in:
lib/jruby_scala/core_ext/proc/scala_function.rb

Instance Method Summary collapse

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