private Method

BaseModel.install_element(name, postfix="")

There's no documentation for this item.

Source Code

# File rss/rss.rb, line 247
def install_element(name, postfix="")
  elem_name = name.sub('_', ':')
  method_name = "#{name}_element#{postfix}"
  add_to_element_method(method_name)
  module_eval("def \#{method_name}(need_convert=true, indent='')\n\#{yield(name, elem_name)}\nend\nprivate :\#{method_name}\n", *get_file_and_line_from_caller(2))
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.