Class: Expgen::Nodes::Range

Inherits:
Character show all
Defined in:
lib/expgen/nodes.rb

Instance Attribute Summary

Attributes inherited from Node

#ast

Instance Method Summary collapse

Methods inherited from Node

#initialize, #max, #repeat

Constructor Details

This class inherits a constructor from Expgen::Nodes::Node

Instance Method Details

#charsObject



97
98
99
# File 'lib/expgen/nodes.rb', line 97

def chars
  (ast[:from].to_s..ast[:to].to_s).to_a
end