static public Method

BlankSlate.hide(name)

Hide the method named name in the BlankSlate class. Don’t hide instance_eval or any method beginning with "__".

Source Code

# File active_support/vendor/builder-2.1.2/blankslate.rb, line 22
def hide(name)
  if instance_methods.include?(name.to_s) and
    name !~ /^(__|instance_eval)/
    @hidden_methods ||= {}
    @hidden_methods[name.to_sym] = instance_method(name)
    undef_method name
  end
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.