Class: Yacht

Inherits:
Object
  • Object
show all
Defined in:
lib/yacht/base.rb,
lib/yacht/version.rb,
lib/yacht/classy_struct.rb

Defined Under Namespace

Modules: HashHelper, RailsHelper Classes: LoadError, Loader

Constant Summary collapse

VERSION =
"0.3.0"

Class Method Summary collapse

Class Method Details

.[](key) ⇒ Object

Return value for key retrieved from Yacht::Loader.to_hash



7
8
9
# File 'lib/yacht/base.rb', line 7

def [](key)
  self._hash[key]
end

._classy_structObject



28
29
30
# File 'lib/yacht/classy_struct.rb', line 28

def _classy_struct
  @_classy_struct ||= Loader.to_classy_struct
end

._hashObject

Return a hash with all values for current environment



12
13
14
# File 'lib/yacht/base.rb', line 12

def _hash
  @_hash ||= Loader.to_hash
end

.method_missing(method, *args, &block) ⇒ Object



24
25
26
# File 'lib/yacht/classy_struct.rb', line 24

def method_missing(method, *args, &block)
  _classy_struct.send(method)
end