class SimpleDocument::Ostruct
Public Class Methods
new(data)
click to toggle source
# File lib/simple_document/ostruct.rb, line 7 def initialize(data) @ostruct = OpenStruct.new(data) end
Public Instance Methods
active?()
click to toggle source
# File lib/simple_document/ostruct.rb, line 13 def active? true end
mtime()
click to toggle source
# File lib/simple_document/ostruct.rb, line 17 def mtime @ostruct.mtime && Time.parse(@ostruct.mtime) end