Class: OpenHAB::YARD::CodeObjects::GroupObject
- Inherits:
-
YARD::CodeObjects::Base
- Object
- YARD::CodeObjects::Base
- OpenHAB::YARD::CodeObjects::GroupObject
- Defined in:
- lib/openhab/yard/code_objects/group_object.rb
Instance Attribute Summary collapse
-
#full_name ⇒ Object
(also: #to_s)
readonly
Returns the value of attribute full_name.
Instance Method Summary collapse
-
#initialize(namespace, name) ⇒ GroupObject
constructor
A new instance of GroupObject.
- #path ⇒ Object
Constructor Details
#initialize(namespace, name) ⇒ GroupObject
Returns a new instance of GroupObject.
9 10 11 12 13 |
# File 'lib/openhab/yard/code_objects/group_object.rb', line 9 def initialize(namespace, name) @full_name = name name = name.delete(%(.?"')).tr(" ", "-") super end |
Instance Attribute Details
#full_name ⇒ Object (readonly) Also known as: to_s
Returns the value of attribute full_name.
7 8 9 |
# File 'lib/openhab/yard/code_objects/group_object.rb', line 7 def full_name @full_name end |
Instance Method Details
#path ⇒ Object
15 16 17 |
# File 'lib/openhab/yard/code_objects/group_object.rb', line 15 def path "group#{sep}#{super}" end |