Class: Dustbag::Variations
- Inherits:
-
Object
- Object
- Dustbag::Variations
- Includes:
- Parser::CollectionNode, Parser::Node
- Defined in:
- lib/dustbag/variations.rb
Instance Attribute Summary
Attributes included from Parser::Node
Instance Method Summary collapse
Methods included from Parser::CollectionNode
#collection, included, #member_class, #member_name
Methods included from Parser::Node
included, #initialize, #repeated_subnodes, #repeated_subnodes_text, #subnode, #subnode_text
Instance Method Details
#dimensions ⇒ Object
11 12 13 14 15 16 |
# File 'lib/dustbag/variations.rb', line 11 def dimensions dimensions = subnode('VariationDimensions') dimensions && dimensions.locate('VariationDimension').map do |dimension| dimension.text end end |