Class: EnumMachineContrib::EdgeSet
- Inherits:
-
Set
- Object
- Set
- EnumMachineContrib::EdgeSet
- Defined in:
- lib/enum_machine_contrib/edge_set.rb
Instance Attribute Summary collapse
-
#with_dropped ⇒ Object
Returns the value of attribute with_dropped.
Instance Method Summary collapse
- #add(value) ⇒ Object
-
#initialize ⇒ EdgeSet
constructor
A new instance of EdgeSet.
Constructor Details
#initialize ⇒ EdgeSet
Returns a new instance of EdgeSet.
8 9 10 11 |
# File 'lib/enum_machine_contrib/edge_set.rb', line 8 def initialize(*) @with_dropped = Set.new super end |
Instance Attribute Details
#with_dropped ⇒ Object
Returns the value of attribute with_dropped.
6 7 8 |
# File 'lib/enum_machine_contrib/edge_set.rb', line 6 def with_dropped @with_dropped end |
Instance Method Details
#add(value) ⇒ Object
13 14 15 16 |
# File 'lib/enum_machine_contrib/edge_set.rb', line 13 def add(value) @with_dropped << value super end |