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