Method: CSL::Info#update!
- Defined in:
- lib/csl/info.rb
#update!(timestamp = Time.now) ⇒ self
Sets the updated_at timestamp.
113 114 115 116 117 118 119 120 121 122 123 |
# File 'lib/csl/info.rb', line 113 def update!( = Time.now) ts = .respond_to?(:xmlschema) ? .xmlschema : .to_s if has_updated? updated.text = ts else add_child Updated.new { |u| u.text = ts } end self end |