Module BlankSlate::ClassMethods
In: lib/blank_slate.rb

Methods

hide   restore  

Public Instance methods

[Source]

# File lib/blank_slate.rb, line 30
    def hide ( name )
      return unless instance_methods.include? name.to_s
      return if blank_slate_ignore(name)
      long = "__blank_slate_#{name}"
      alias_method long, name unless instance_methods.include? long
      undef_method name
    end

[Source]

# File lib/blank_slate.rb, line 38
    def restore ( name )
      long = "__blank_slate_#{name}"
      if instance_methods.include? long
        alias_method name, long
      end
    end

[Validate]