Class: OpenHAB::Core::Actions::Transformation
- Inherits:
-
Object
- Object
- OpenHAB::Core::Actions::Transformation
- Defined in:
- lib/openhab/core/actions/transformation.rb
Overview
Class Method Summary collapse
-
.transform(type, function, value) ⇒ String
Applies a transformation of a given type with some function to a value.
Class Method Details
.transform(type, function, value) ⇒ String
Applies a transformation of a given type with some function to a value.
25 26 27 |
# File 'lib/openhab/core/actions/transformation.rb', line 25 def transform(type, function, value) raw_transform(type.to_s.upcase, function.to_s, value.to_s) end |