Module: Classy::Yaml

Defined in:
lib/classy/yaml.rb,
lib/classy/yaml/engine.rb,
lib/classy/yaml/helpers.rb,
lib/classy/yaml/version.rb,
lib/classy/yaml/component_helpers.rb,
lib/classy/yaml/invalid_key_error.rb

Defined Under Namespace

Modules: ComponentHelpers, Helpers Classes: Engine, InvalidKeyError

Constant Summary collapse

VERSION =
'1.3.0'
@@default_file =
"config/utility_classes.yml"
@@engine_files =
[]
@@extra_files =
[]

Class Method Summary collapse

Class Method Details

.engine_files=(value) ⇒ Object



19
20
21
# File 'lib/classy/yaml.rb', line 19

def self.engine_files=(value)
  @@engine_files = Array.wrap(value).reject(&:blank?).map { |file| Rails.root.join(file) }
end

.extra_files=(value) ⇒ Object



23
24
25
# File 'lib/classy/yaml.rb', line 23

def self.extra_files=(value)
  @@extra_files = Array.wrap(value).reject(&:blank?).map { |file| Rails.root.join(file) }
end

.setup {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (Classy::Yaml)

    the object that the method was called on



27
28
29
# File 'lib/classy/yaml.rb', line 27

def self.setup
  yield self
end