add_alias

add_alias(an_alias, context)
Instance Public methods

Abstract method. Contexts in their building phase call this to register a new alias for this known method/attribute.

  • creates a new AnyMethod/Attribute named an_alias.new_name;

  • adds self as an alias for the new method or attribute

  • adds the method or attribute to aliases

  • adds the method or attribute to context.

doc_ruby_on_rails
2015-05-03 07:54:51
Comments
Leave a Comment

Please login to continue.