Class: EnumMachineContrib::EdgeSet

Inherits:
Set
  • Object
show all
Defined in:
lib/enum_machine_contrib/edge_set.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeEdgeSet

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_droppedObject

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