Class: Expgen::Nodes::Shorthand
- 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
61 62 63 64 65 66 67 68 69 70 71 72 |
# File 'lib/expgen/nodes.rb', line 61 def chars case ast[:letter].to_s when "w" then WORD when "W" then NEGATIVE_WORD when "d" then DIGIT when "D" then NON_DIGIT when "h" then HEX_DIGIT when "H" then NON_HEX_DIGIT when "s" then SPACE when "S" then NON_SPACE end end |