Class: Jets::Cfn::Stack::Yamler
- Inherits:
-
Object
- Object
- Jets::Cfn::Stack::Yamler
- Defined in:
- lib/jets/cfn/stack/yamler.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(text) ⇒ Yamler
constructor
A new instance of Yamler.
- #load ⇒ Object
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
#load ⇒ Object
13 14 15 16 |
# File 'lib/jets/cfn/stack/yamler.rb', line 13 def load add_domain_types! YAML.load(@text) end |