Class: CldrPlurals::Compiler::Relation

Inherits:
Object
  • Object
show all
Defined in:
lib/cldr-plurals/compiler/nodes.rb

Overview

i % 1 = 0

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(expression, operation, value) ⇒ Relation

Returns a new instance of Relation.



29
30
31
32
33
# File 'lib/cldr-plurals/compiler/nodes.rb', line 29

def initialize(expression, operation, value)
  @expression = expression
  @operation = operation
  @value = value
end

Instance Attribute Details

#expressionObject (readonly)

Returns the value of attribute expression.



27
28
29
# File 'lib/cldr-plurals/compiler/nodes.rb', line 27

def expression
  @expression
end

#operationObject (readonly)

Returns the value of attribute operation.



27
28
29
# File 'lib/cldr-plurals/compiler/nodes.rb', line 27

def operation
  @operation
end

#valueObject (readonly)

Returns the value of attribute value.



27
28
29
# File 'lib/cldr-plurals/compiler/nodes.rb', line 27

def value
  @value
end

Instance Method Details

#operandObject



35
36
37
# File 'lib/cldr-plurals/compiler/nodes.rb', line 35

def operand
  expression.operand
end