Skip to content

Instantly share code, notes, and snippets.

@baroquebobcat
Created November 8, 2011 02:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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