Module: Avm::Sources::Base::Parent

Defined in:
lib/avm/sources/base/parent.rb

Instance Method Summary collapse

Instance Method Details

#parent_by_optionAvm::Sources::Base

Returns:



10
11
12
# File 'lib/avm/sources/base/parent.rb', line 10

def parent_by_option
  options[OPTION_PARENT]
end

#parent_by_searchAvm::Sources::Base

Returns:



15
16
17
# File 'lib/avm/sources/base/parent.rb', line 15

def parent_by_search
  ::Avm::Registry.sources.detect_by_path_optional(path.parent)
end