Class: String
- Defined in:
- lib/time_crisis/conversions.rb,
lib/time_crisis/support/ext/object/blank.rb
Instance Method Summary collapse
Instance Method Details
#blank? ⇒ Boolean
38 39 40 |
# File 'lib/time_crisis/support/ext/object/blank.rb', line 38 def blank? self !~ /\S/ end |
#to_tc_date(opts = {}) ⇒ Object
44 45 46 |
# File 'lib/time_crisis/conversions.rb', line 44 def to_tc_date(opts={}) TimeCrisis::Date.parse(self, opts) end |
#to_tc_datetime(opts = {}) ⇒ Object
48 49 50 |
# File 'lib/time_crisis/conversions.rb', line 48 def to_tc_datetime(opts={}) TimeCrisis::DateTime.parse(self, opts) end |