Class: Lookout::Aphonic

Inherits:
Object show all
Defined in:
lib/lookout/aphonic.rb

Constant Summary collapse

Methods =
[
  :__id__, :__send__, :object_id, # Methods that must be defined
  :extend, :is_a? # Methods that we need
]

Class Method Summary collapse

Class Method Details

.silence(name) ⇒ Object



9
10
11
12
13
# File 'lib/lookout/aphonic.rb', line 9

def self.silence(name)
  undef_method name if
    instance_methods.include?(RUBY_VERSION < '1.9' ? name.to_s : name.to_sym) and
    not Methods.include? name.to_sym
end