Class: StringEnum
- Inherits:
-
String
show all
- Includes:
- Delorean::Model
- Defined in:
- lib/marty/monkey.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from String
#in_time_zone, #old_in_time_zone
Class Method Details
._load(v) ⇒ Object
195
196
197
|
# File 'lib/marty/monkey.rb', line 195
def self._load(v)
new(v)
end
|
Instance Method Details
#_dump(_) ⇒ Object
191
192
193
|
# File 'lib/marty/monkey.rb', line 191
def _dump _
self.to_s
end
|
#id ⇒ Object
179
180
181
|
# File 'lib/marty/monkey.rb', line 179
def id
self
end
|
#name ⇒ Object
176
177
178
|
# File 'lib/marty/monkey.rb', line 176
def name
self.to_s
end
|
#to_yaml(opts = {}) ⇒ Object
185
186
187
188
189
|
# File 'lib/marty/monkey.rb', line 185
def to_yaml(opts = {})
YAML::quick_emit(nil, opts) do |out|
out.scalar('stringEnum', self.to_s, :plain)
end
end
|