Module: OpenHAB::Core::Items::GroupFunction
- Defined in:
- lib/openhab/core/items/group_function.rb
Overview
Adds #to_s
and #inspect
to group function.
Instance Method Summary collapse
-
#inspect ⇒ String
Returns the group function and its parameters as a string.
-
#to_s ⇒ String
Returns the group function as an uppercase string.
Instance Method Details
#inspect ⇒ String
Returns the group function and its parameters as a string
29 30 31 32 33 |
# File 'lib/openhab/core/items/group_function.rb', line 29 def inspect params = parameters.map(&:inspect).join(",") params = "(#{params})" unless params.empty? "#{self}#{params}" end |
#to_s ⇒ String
Returns the group function as an uppercase string
21 22 23 |
# File 'lib/openhab/core/items/group_function.rb', line 21 def to_s self.class.simple_name.upcase end |