Module: OpenHAB::Core::Sitemaps::Sitemap
- Defined in:
- lib/openhab/core/sitemaps/sitemap.rb
Overview
Instance Attribute Summary collapse
- #icon ⇒ String? readonly
- #label ⇒ String? readonly
- #name ⇒ String readonly
- #widgets ⇒ <Widget> readonly
Instance Method Summary collapse
- #to_s ⇒ String (also: #inspect)
Instance Attribute Details
#icon ⇒ String? (readonly)
|
|
# File 'lib/openhab/core/sitemaps/sitemap.rb', line 17
|
#label ⇒ String? (readonly)
|
|
# File 'lib/openhab/core/sitemaps/sitemap.rb', line 14
|
#name ⇒ String (readonly)
|
|
# File 'lib/openhab/core/sitemaps/sitemap.rb', line 11
|
Instance Method Details
#to_s ⇒ String Also known as: inspect
24 25 26 27 28 29 30 31 |
# File 'lib/openhab/core/sitemaps/sitemap.rb', line 24 def to_s r = "#<OpenHAB::Core::Sitemaps::Sitemap #{name}" r += " #{label.inspect}" if label r += " icon=#{icon.inspect}" if icon children_count = widgets.size r += " (#{children_count} child#{"ren" if children_count != 1})" if children_count.positive? "#{r}>" end |