Class: CldrPlurals::Compiler::Expression

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

Overview

i % 1

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(operand, operation, value) ⇒ Expression

Returns a new instance of Expression.



18
19
20
21
22
# File 'lib/cldr-plurals/compiler/nodes.rb', line 18

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

Instance Attribute Details

#operandObject (readonly)

Returns the value of attribute operand.



16
17
18
# File 'lib/cldr-plurals/compiler/nodes.rb', line 16

def operand
  @operand
end

#operationObject (readonly)

Returns the value of attribute operation.



16
17
18
# File 'lib/cldr-plurals/compiler/nodes.rb', line 16

def operation
  @operation
end

#valueObject (readonly)

Returns the value of attribute value.



16
17
18
# File 'lib/cldr-plurals/compiler/nodes.rb', line 16

def value
  @value
end