Class: Rasti::Types::Time
- Inherits:
-
Object
- Object
- Rasti::Types::Time
- Includes:
- Castable
- Defined in:
- lib/rasti/types/time.rb
Instance Attribute Summary collapse
-
#format ⇒ Object
readonly
Returns the value of attribute format.
Class Method Summary collapse
Instance Method Summary collapse
- #to_s ⇒ Object (also: #inspect)
Methods included from Castable
Instance Attribute Details
#format ⇒ Object (readonly)
Returns the value of attribute format.
7 8 9 |
# File 'lib/rasti/types/time.rb', line 7 def format @format end |
Class Method Details
.[](format) ⇒ Object
9 10 11 |
# File 'lib/rasti/types/time.rb', line 9 def self.[](format) new format end |
Instance Method Details
#to_s ⇒ Object Also known as: inspect
13 14 15 |
# File 'lib/rasti/types/time.rb', line 13 def to_s "#{self.class}['#{format}']" end |