Skip to content

Instantly share code, notes, and snippets.

@arturaz
Created September 13, 2011 20:18
Show Gist options
  • Save arturaz/1215025 to your computer and use it in GitHub Desktop.
Save arturaz/1215025 to your computer and use it in GitHub Desktop.
object Finder {
def test(t: Option[Int]) { println(t.get) }
}
>> SpaceMule::PfO.Finder.test(Some(3))
3
=> nil
>> SpaceMule::PfO.Finder.test(None)
NameError: no method 'test' for arguments (org.jruby.RubyClass) on Java::SpacemuleModulesPathfinderObjects::Finder
available overloads:
(scala.Option)
(scala.Option)
from (irb):6:in `evaluate'
from org/jruby/RubyKernel.java:1011:in `eval'
from /home/arturas/.rvm/rubies/jruby-head/lib/ruby/1.8/irb.rb:158:in `eval_input'
from /home/arturas/.rvm/rubies/jruby-head/lib/ruby/1.8/irb.rb:271:in `signal_status'
from /home/arturas/.rvm/rubies/jruby-head/lib/ruby/1.8/irb.rb:155:in `eval_input'
from org/jruby/RubyKernel.java:1343:in `loop'
from org/jruby/RubyKernel.java:1115:in `catch'
from /home/arturas/.rvm/rubies/jruby-head/lib/ruby/1.8/irb.rb:154:in `eval_input'
from /home/arturas/.rvm/rubies/jruby-head/lib/ruby/1.8/irb.rb:71:in `start'
from org/jruby/RubyKernel.java:1115:in `catch'
from /home/arturas/.rvm/rubies/jruby-head/lib/ruby/1.8/irb.rb:70:in `start'
from /home/arturas/.rvm/rubies/jruby-head/bin/jirb:17:in `(root)'
>> None
=> Java::Scala::None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment