Module: ConventionalExtensions

Extended by:
ConventionalExtensions
Included in:
ConventionalExtensions
Defined in:
lib/conventional_extensions.rb,
lib/conventional_extensions/version.rb

Defined Under Namespace

Modules: Frame, LoadOnInherited Classes: Loader, Railtie

Constant Summary collapse

VERSION =
"0.4.0"

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.load_on_inheritedObject

extend ConventionalExtensions.load_on_inherited



17
# File 'lib/conventional_extensions.rb', line 17

def self.load_on_inherited() = LoadOnInherited

Instance Method Details

#load_extensions(*extensions, from: Frame.previous.path) ⇒ Object Also known as: load_extension



8
9
10
11
12
13
# File 'lib/conventional_extensions.rb', line 8

def load_extensions(*extensions, from: Frame.previous.path)
  @loader = Loader.new(self, from) unless loader_defined_before_entrance = defined?(@loader)
  @loader.load(*extensions)
ensure
  @loader = nil unless loader_defined_before_entrance
end