Module: OpenHAB::DSL::MonkeyPatch::Ruby::StringExtensions
Overview
Extend String class
Instance Method Summary collapse
-
#==(other) ⇒ Boolean
Compares String to another object.
Methods included from Core
Methods included from Log
included, logger, #logger, logger_for
Instance Method Details
#==(other) ⇒ Boolean
Compares String to another object
24 25 26 27 28 29 30 31 32 |
# File 'lib/openhab/dsl/monkey_patch/ruby/string.rb', line 24 def ==(other) case other when OpenHAB::DSL::Types::Quantity, QuantityType, Java::OrgOpenhabCoreLibraryTypes::StringType, OpenHAB::DSL::Types::DateTime, OpenHAB::DSL::Items::DateTimeItem other == self else super end end |