Class: Juggalo::Page::Loader::YAML
- Defined in:
- lib/juggalo/page/loader/yaml.rb
Instance Method Summary collapse
- #components ⇒ Object
-
#initialize(location) ⇒ YAML
constructor
A new instance of YAML.
Methods inherited from Base
Constructor Details
#initialize(location) ⇒ YAML
Returns a new instance of YAML.
9 10 11 |
# File 'lib/juggalo/page/loader/yaml.rb', line 9 def initialize(location) @location = location end |
Instance Method Details
#components ⇒ Object
13 14 15 |
# File 'lib/juggalo/page/loader/yaml.rb', line 13 def components page_hash["components"].map { |c| create_component_from c } end |