Class: Sapphire::DSL::Events::Event
- Defined in:
- lib/sapphire/DSL/Events/Event.rb
Instance Method Summary collapse
- #AddSegment(segment) ⇒ Object
-
#initialize(name) ⇒ Event
constructor
A new instance of Event.
Constructor Details
#initialize(name) ⇒ Event
Returns a new instance of Event.
14 15 16 17 |
# File 'lib/sapphire/DSL/Events/Event.rb', line 14 def initialize(name) @name = name @segments = {} end |
Instance Method Details
#AddSegment(segment) ⇒ Object
19 20 21 |
# File 'lib/sapphire/DSL/Events/Event.rb', line 19 def AddSegment(segment) @segments.merge! segment end |