Class: Expgen::Nodes::BracketExpression
- Defined in:
- lib/expgen/nodes.rb
Instance Attribute Summary
Attributes inherited from Node
Instance Method Summary collapse
Methods inherited from Node
Constructor Details
This class inherits a constructor from Expgen::Nodes::Node
Instance Method Details
#chars ⇒ Object
76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 |
# File 'lib/expgen/nodes.rb', line 76 def chars case ast[:name].to_s when "alnum" then ALPHA + DIGIT when "alpha" then ALPHA when "blank" then " " when "cntrl" then CONTROL_CHARS when "digit" then DIGIT when "graph" then NON_SPACE when "lower" then LOWER when "print" then ASCII when "punct" then PUNCT when "space" then SPACE when "upper" then UPPER when "xdigit" then HEX_DIGIT when "word" then WORD + ["_"] when "ascii" then ASCII end end |