Module: Ancestree

Extended by:
ActiveSupport::Concern
Defined in:
lib/ancestree.rb,
lib/ancestree/version.rb

Defined Under Namespace

Modules: ClassMethods

Constant Summary collapse

VERSION =
"0.1.6"

Instance Method Summary collapse

Instance Method Details

#inherits_from_ancestor?(method) ⇒ Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/ancestree.rb', line 6

def inherits_from_ancestor?(method)
  !gets_value_locally?(method)
end