Class: CldrPlurals::Compiler::Expression
- Inherits:
-
Object
- Object
- CldrPlurals::Compiler::Expression
- Defined in:
- lib/cldr-plurals/compiler/nodes.rb
Overview
i % 1
Instance Attribute Summary collapse
-
#operand ⇒ Object
readonly
Returns the value of attribute operand.
-
#operation ⇒ Object
readonly
Returns the value of attribute operation.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(operand, operation, value) ⇒ Expression
constructor
A new instance of Expression.
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
#operand ⇒ Object (readonly)
Returns the value of attribute operand.
16 17 18 |
# File 'lib/cldr-plurals/compiler/nodes.rb', line 16 def operand @operand end |
#operation ⇒ Object (readonly)
Returns the value of attribute operation.
16 17 18 |
# File 'lib/cldr-plurals/compiler/nodes.rb', line 16 def operation @operation end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
16 17 18 |
# File 'lib/cldr-plurals/compiler/nodes.rb', line 16 def value @value end |