Created
September 13, 2011 20:18
-
-
Save arturaz/1215025 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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