Class: Jets::Cfn::Stack::Yamler

Inherits:
Object
  • Object
show all
Defined in:
lib/jets/cfn/stack/yamler.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(text) ⇒ Yamler

Returns a new instance of Yamler.



9
10
11
# File 'lib/jets/cfn/stack/yamler.rb', line 9

def initialize(text)
  @text = text
end

Class Method Details

.load(text) ⇒ Object



5
6
7
# File 'lib/jets/cfn/stack/yamler.rb', line 5

def self.load(text)
  new(text).load
end

Instance Method Details

#loadObject



13
14
15
16
# File 'lib/jets/cfn/stack/yamler.rb', line 13

def load
  add_domain_types!
  YAML.load(@text)
end