Class: Cl::Config::Files

Inherits:
Struct
  • Object
show all
Includes:
Merge
Defined in:
lib/cl/config/files.rb

Constant Summary collapse

PATHS =
%w(
  ~/.%s.yml
  ./.%s.yml
)

Constants included from Merge

Merge::MERGE

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Merge

#merge

Instance Attribute Details

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



6
7
8
# File 'lib/cl/config/files.rb', line 6

def name
  @name
end

Instance Method Details

#loadObject



14
15
16
# File 'lib/cl/config/files.rb', line 14

def load
  configs.any? ? symbolize(merge(*configs)) : {}
end