Class: DataMapper::Support::Symbol::Operator

Inherits:
Object
  • Object
show all
Defined in:
lib/data_mapper/support/symbol.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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, options = nil)
  @value, @type, @options = value, type, options
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



7
8
9
# File 'lib/data_mapper/support/symbol.rb', line 7

def options
  @options
end

#typeObject (readonly)

Returns the value of attribute type.



7
8
9
# File 'lib/data_mapper/support/symbol.rb', line 7

def type
  @type
end

#valueObject (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_symObject



13
14
15
# File 'lib/data_mapper/support/symbol.rb', line 13

def to_sym
  @value
end