Module: Laborantin::Metaprog::Datable
- Included in:
- Environment, Scenario
- Defined in:
- lib/laborantin/core/datable.rb
Instance Attribute Summary collapse
-
#date ⇒ Object
Returns the value of attribute date.
Instance Method Summary collapse
-
#date_str ⇒ Object
Format the date of as a string (rounded at 1second).
Instance Attribute Details
#date ⇒ Object
Returns the value of attribute date.
5 6 7 |
# File 'lib/laborantin/core/datable.rb', line 5 def date @date end |
Instance Method Details
#date_str ⇒ Object
Format the date of as a string (rounded at 1second).
8 9 10 |
# File 'lib/laborantin/core/datable.rb', line 8 def date_str date.strftime("%Y-%h-%d_%H-%M-%S") end |