Class: MSFLVisitors::Nodes::Set
- Extended by:
- Forwardable
- Defined in:
- lib/msfl_visitors/nodes/set.rb
Instance Attribute Summary collapse
-
#contents ⇒ Object
Returns the value of attribute contents.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(nodes) ⇒ Set
constructor
A new instance of Set.
Methods inherited from Base
Constructor Details
#initialize(nodes) ⇒ Set
Returns a new instance of Set.
13 14 15 |
# File 'lib/msfl_visitors/nodes/set.rb', line 13 def initialize(nodes) self.contents = Array(nodes) end |
Instance Attribute Details
#contents ⇒ Object
Returns the value of attribute contents.
8 9 10 |
# File 'lib/msfl_visitors/nodes/set.rb', line 8 def contents @contents end |
Instance Method Details
#==(other) ⇒ Object
17 18 19 20 |
# File 'lib/msfl_visitors/nodes/set.rb', line 17 def ==(other) self.class == other.class && contents == other.contents end |