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.



11
12
13
# File 'lib/data_mapper/support/symbol.rb', line 11

def initialize(value, type, options = nil)
  @value, @type, @options = value, type, options
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



9
10
11
# File 'lib/data_mapper/support/symbol.rb', line 9

def options
  @options
end

#typeObject (readonly)

Returns the value of attribute type.



9
10
11
# File 'lib/data_mapper/support/symbol.rb', line 9

def type
  @type
end

#valueObject (readonly)

Returns the value of attribute value.



9
10
11
# File 'lib/data_mapper/support/symbol.rb', line 9

def value
  @value
end

Instance Method Details

#to_symObject



15
16
17
# File 'lib/data_mapper/support/symbol.rb', line 15

def to_sym
  @value
end