Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/unresponsys/helpers.rb
Instance Method Summary collapse
Instance Method Details
#blank? ⇒ Boolean
10 11 12 |
# File 'lib/unresponsys/helpers.rb', line 10 def blank? respond_to?(:empty?) ? !!empty? : !self end |
#presence ⇒ Object
18 19 20 |
# File 'lib/unresponsys/helpers.rb', line 18 def presence self if present? end |
#present? ⇒ Boolean
14 15 16 |
# File 'lib/unresponsys/helpers.rb', line 14 def present? !blank? end |
#to_responsys ⇒ Object
2 3 4 |
# File 'lib/unresponsys/helpers.rb', line 2 def to_responsys self.to_s end |
#to_ruby ⇒ Object
6 7 8 |
# File 'lib/unresponsys/helpers.rb', line 6 def to_ruby self end |