Class: RedSnow::Sourcemap::Node
- Inherits:
-
Object
- Object
- RedSnow::Sourcemap::Node
- Defined in:
- lib/redsnow/sourcemap.rb
Overview
Base Node - holds @collection
Direct Known Subclasses
Instance Attribute Summary collapse
-
#collection ⇒ Object
Returns the value of attribute collection.
Instance Method Summary collapse
-
#initialize(sourcemap) ⇒ Node
constructor
A new instance of Node.
Constructor Details
#initialize(sourcemap) ⇒ Node
12 13 14 15 16 17 18 19 20 |
# File 'lib/redsnow/sourcemap.rb', line 12 def initialize(sourcemap) @collection = [] return if sourcemap.nil? sourcemap.each do |sm| @collection << SourceMap.new(sm) end end |
Instance Attribute Details
#collection ⇒ Object
Returns the value of attribute collection.
9 10 11 |
# File 'lib/redsnow/sourcemap.rb', line 9 def collection @collection end |