Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/tap.rb,
lib/object_present.rb
Overview
is the value a non-empty string or a binary?
:reek:ManualDispatch ### temp
Instance Method Summary collapse
Instance Method Details
#present? ⇒ Boolean
13 14 15 16 17 18 19 20 |
# File 'lib/tap.rb', line 13 def present? case self.class.to_s when 'FalseClass', 'TrueClass' true else self && (!respond_to?(:empty?) || !empty?) end end |