Class: Cl::Config

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

Defined Under Namespace

Classes: Env, Files

Constant Summary

Constants included from Merge

Merge::MERGE

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Merge

#merge

Constructor Details

#initialize(name) ⇒ Config

Returns a new instance of Config.



11
12
13
14
# File 'lib/cl/config.rb', line 11

def initialize(name)
  @name = name
  @opts = load
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



9
10
11
# File 'lib/cl/config.rb', line 9

def name
  @name
end

#optsObject (readonly)

Returns the value of attribute opts.



9
10
11
# File 'lib/cl/config.rb', line 9

def opts
  @opts
end

Instance Method Details

#to_hObject



16
17
18
# File 'lib/cl/config.rb', line 16

def to_h
  opts
end