Method: Torque::PostgreSQL::Attributes::EnumSet.fetch
- Defined in:
- lib/torque/postgresql/attributes/enum_set.rb
.fetch(value) ⇒ Object Also known as: []
63 64 65 |
# File 'lib/torque/postgresql/attributes/enum_set.rb', line 63 def fetch(value, *) new(value.to_s) if values.include?(value) end |