lib/thinwestlake/model.rb
# Redefine a previously hidden method so that it may be called on a blank
# slate object.
Redefine a previously hidden method so that it may be called on a blank
slate object.
Redefine a previously hidden method so that it may be called on a blank slate object .
def reveal(name)
                hidden_method = find_hidden_method(name)
                fail "Don't know how to reveal method '#{name}'" unless hidden_method
                define_method(name, hidden_method)
            end
def reveal ( name ) hidden_method = find_hidden_method ( name ) fail "Don't know how to reveal method '#{name}'" unless hidden_method define_method ( name , hidden_method ) end
Redefine a previously hidden method so that it may be called on a blank
slate object.
Redefine a previously hidden method so that it may be called on a blank slate object .
name
<not_specific>