Method: Runo::Meta::Timestamp#initialize
- Defined in:
- lib/meta/timestamp.rb
#initialize(meta = {}) ⇒ Timestamp
Returns a new instance of Timestamp.
14 15 16 17 18 19 |
# File 'lib/meta/timestamp.rb', line 14 def initialize( = {}) [:size] = $&.to_i if [:tokens] && [:tokens].find {|t| t =~ /^\d+$/ } [:can_edit] = true if Array([:tokens]).include? 'can_edit' [:can_update] = true if Array([:tokens]).include? 'can_update' super end |