Sha256: 9c00d5719522351bd14687e377a7fd878860f6c49cf6357a7f237a51c80fa1de

Contents?: true

Size: 164 Bytes

Versions: 40

Compression:

Stored size: 164 Bytes

Contents

class Date
  def to_json(*a)
    %("#{strftime("%Y/%m/%d")}")
  end
  
  def self.json_create string
    return nil if string.nil?
    Date.parse(string)
  end
end

Version data entries

40 entries across 40 versions & 6 rubygems

Version Path
andrewtimberlake-couch_potato-0.2.8.1 lib/core_ext/date.rb
andrewtimberlake-couch_potato-0.2.8.2 lib/core_ext/date.rb
andrewtimberlake-couch_potato-0.2.8.3 lib/core_ext/date.rb
andrewtimberlake-couch_potato-0.2.8.4 lib/core_ext/date.rb
langalex-couch_potato-0.2.0 lib/core_ext/date.rb
langalex-couch_potato-0.2.1 lib/core_ext/date.rb
langalex-couch_potato-0.2.11 lib/core_ext/date.rb
langalex-couch_potato-0.2.12 lib/core_ext/date.rb
langalex-couch_potato-0.2.2 lib/core_ext/date.rb
langalex-couch_potato-0.2.3 lib/core_ext/date.rb
langalex-couch_potato-0.2.4 lib/core_ext/date.rb
langalex-couch_potato-0.2.5 lib/core_ext/date.rb
langalex-couch_potato-0.2.6 lib/core_ext/date.rb
langalex-couch_potato-0.2.7 lib/core_ext/date.rb
langalex-couch_potato-0.2.8 lib/core_ext/date.rb
langalex-couch_potato-0.2.9 lib/core_ext/date.rb
speedmax-couch_potato-0.2.0 lib/core_ext/date.rb
speedmax-couch_potato-0.2.2 lib/core_ext/date.rb
thefool808-couch_potato-0.2.7 lib/core_ext/date.rb
couch_potato-0.2.25 lib/core_ext/date.rb