Class: Trema::DSL::CustomSwitch
- Defined in:
- ruby/trema/dsl/custom-switch.rb
Instance Attribute Summary
Attributes inherited from Stanza
Instance Method Summary collapse
-
#initialize(name = nil) ⇒ CustomSwitch
constructor
A new instance of CustomSwitch.
- #path(filepath) ⇒ Object
Methods inherited from Switch
Methods inherited from Stanza
Constructor Details
#initialize(name = nil) ⇒ CustomSwitch
Returns a new instance of CustomSwitch.
27 28 29 |
# File 'ruby/trema/dsl/custom-switch.rb', line 27 def initialize name = nil super name end |
Instance Method Details
#path(filepath) ⇒ Object
32 33 34 |
# File 'ruby/trema/dsl/custom-switch.rb', line 32 def path filepath @path = filepath end |