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 hpricot/blankslate.rb, line 22
def hide(name)
  undef_method name if
    instance_methods.include?(name.to_s) and
    name !~ /^(__|instance_eval)/
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.