Skip to content

Instantly share code, notes, and snippets.

@baroquebobcat
Created November 8, 2011 02:18
Show Gist options
  • Save baroquebobcat/1346820 to your computer and use it in GitHub Desktop.
Save baroquebobcat/1346820 to your computer and use it in GitHub Desktop.
Blog post notes
add_method('==', [Object], Boolean) do |compiler, call, expression|
if expression
java_method('equals',Object).call(compiler, call, expression)
end
end
class Greeter < ShatnerBase
get '/' do
@person = 'Bob'
edb :hello
end
end
class Greeter < ShatnerBase
get '/' do
@person = 'Bob'
render do
def_edb render 'views/hello.edb'
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment