Skip to content

Instantly share code, notes, and snippets.

@nanodeath
Created April 26, 2009 02:49
Show Gist options
  • Save nanodeath/101862 to your computer and use it in GitHub Desktop.
Save nanodeath/101862 to your computer and use it in GitHub Desktop.
class SlateBinding < ::Tenjin::Context
def initialize(binding)
super(Slate::TemplateEngine::get_instance_variables_from(binding))
@binding = binding
end
def method_missing(meth, *args)
eval("#{meth}(\"#{args.join('","')}\")", @binding)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment