Class: CldrPlurals::Compiler::Condition

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

Overview

and/or

Direct Known Subclasses

AndCondition, OrCondition

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(right, left) ⇒ Condition

Returns a new instance of Condition.



44
45
46
47
# File 'lib/cldr-plurals/compiler/nodes.rb', line 44

def initialize(right, left)
  @right = right
  @left = left
end

Instance Attribute Details

#leftObject (readonly)

Returns the value of attribute left.



42
43
44
# File 'lib/cldr-plurals/compiler/nodes.rb', line 42

def left
  @left
end

#rightObject (readonly)

Returns the value of attribute right.



42
43
44
# File 'lib/cldr-plurals/compiler/nodes.rb', line 42

def right
  @right
end