Created
April 26, 2009 02:49
-
-
Save nanodeath/101862 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
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