public Method

CompiledTemplates.wrap_source(name, arg_names, source)

Wrap the provided source in a def … end block.

Source Code

# File action_view/compiled_templates.rb, line 65
def wrap_source(name, arg_names, source)
  "def #{name}(#{arg_names * ', '})\n#{source}\nend"
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.