Class: DateTime
- Inherits:
-
Object
- Object
- DateTime
- Defined in:
- lib/stone/core_ext/datetime.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
Instance Method Details
#to_yaml(opts = {}) ⇒ Object
13 14 15 16 17 |
# File 'lib/stone/core_ext/datetime.rb', line 13 def to_yaml( opts = {} ) YAML::quick_emit( object_id, opts ) do |out| out.scalar( taguri, self.to_s, :plain ) end end |