Class: Time
- Inherits:
-
Object
show all
- Defined in:
- lib/xommelier/core_ext/time.rb
Class Method Summary
(collapse)
Instance Method Summary
(collapse)
Class Method Details
+ (Object) from_xommelier(value)
4
5
6
7
8
9
10
11
12
13
14
|
# File 'lib/xommelier/core_ext/time.rb', line 4
def self.from_xommelier(value)
return if value == nil
case value
when String
Time.xmlschema(value)
when Time
value
else
raise Xommelier::TypeError.new(value, Time)
end
end
|
Instance Method Details
- (Object) to_xommelier
16
17
18
|
# File 'lib/xommelier/core_ext/time.rb', line 16
def to_xommelier
xmlschema
end
|