Created
October 18, 2011 01:49
-
-
Save baroquebobcat/1294421 to your computer and use it in GitHub Desktop.
Blog post notes
This file contains 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
$ bundle exec mirah -V 110.mirah | |
* [AST] [Import] Import(ArrayList = java.util.ArrayList) resolved! | |
* [Mirah::Typer] New type defined: 'CallableOneArg' < '' | |
... | |
110.mirah:17: undefined method `each' for nil:NilClass | |
RubyInt.new.times do |n| | |
^^^^^^^^^^^^^^^^^^^^^^^^^ | |
^ | |
end | |
^^^ | |
NoMethodError: undefined method `each' for nil:NilClass | |
add_methods at mirah/lib/mirah/ast/structure.rb:180 | |
prepare at mirah/lib/mirah/ast/structure.rb:165 | |
infer at mirah/lib/mirah/ast/call.rb:200 | |
send at org/jruby/RubyKernel.java:2100 | |
method_missing at ~/.rvm/rubies/jruby-1.6.4/lib/ruby/1.8/delegate.rb:292 | |
infer at mirah/lib/mirah/typer/simple.rb:275 | |
resolve at mirah/lib/mirah/typer/simple.rb:324 |
This file contains 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
def run_me r : Runnable | |
r.run | |
end | |
run_me do | |
puts "running in a block" | |
end | |
run_me do | |
def run | |
puts "running in a method in a block" | |
end | |
end |
This file contains 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
package org.hello.world | |
import org.shatner.ShatnerBase | |
class HelloWorld < ShatnerBase | |
get '/' do | |
edb :hello | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment