Class: DataMapper::Support::Symbol::Operator
- Defined in:
- lib/data_mapper/support/symbol.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value, type, options = nil) ⇒ Operator
constructor
A new instance of Operator.
- #to_sym ⇒ Object
Constructor Details
#initialize(value, type, options = nil) ⇒ Operator
Returns a new instance of Operator.
9 10 11 |
# File 'lib/data_mapper/support/symbol.rb', line 9 def initialize(value, type, = nil) @value, @type, @options = value, type, end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
7 8 9 |
# File 'lib/data_mapper/support/symbol.rb', line 7 def @options end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
7 8 9 |
# File 'lib/data_mapper/support/symbol.rb', line 7 def type @type end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
7 8 9 |
# File 'lib/data_mapper/support/symbol.rb', line 7 def value @value end |
Instance Method Details
#to_sym ⇒ Object
13 14 15 |
# File 'lib/data_mapper/support/symbol.rb', line 13 def to_sym @value end |