Class: Date
Instance Method Summary collapse
Instance Method Details
#to_bool ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/platform_helpers/date_time.rb', line 8 def to_bool if "#{self}" != '' return true else return false end end |
#to_us ⇒ Object
15 16 17 |
# File 'lib/platform_helpers/date_time.rb', line 15 def to_us "#{self.month}/#{self.day}/#{self.year}" end |