Class: CldrPlurals::Compiler::Rule

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(root) ⇒ Rule

Returns a new instance of Rule.



9
10
11
# File 'lib/cldr-plurals/compiler/nodes.rb', line 9

def initialize(root)
  @root = root
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



7
8
9
# File 'lib/cldr-plurals/compiler/nodes.rb', line 7

def name
  @name
end

#rootObject (readonly)

Returns the value of attribute root.



6
7
8
# File 'lib/cldr-plurals/compiler/nodes.rb', line 6

def root
  @root
end