Class: Avm::EacRubyBase1::FileFormats::Base::FileResourceName

Inherits:
Object
  • Object
show all
Defined in:
lib/avm/eac_ruby_base1/file_formats/base/file_resource_name.rb

Constant Summary collapse

LIBRARY_PATTERNS =
[%r{lib/((?!.*/lib/).+)\.rb\z},
%r{app/[^/]+/(.+)\.rb\z}].freeze
SPEC_PATTERNS =
[%r{spec/[^/]+/(.+)_spec\.rb\z}].freeze

Instance Method Summary collapse

Instance Method Details

#resultAvm::FileFormats::FileWith

Parameters:

  • path (Pathname)

Returns:

  • (Avm::FileFormats::FileWith)


22
23
24
# File 'lib/avm/eac_ruby_base1/file_formats/base/file_resource_name.rb', line 22

def result
  result_from_spec || result_from_library || result_from_superclass
end