Class: Packcr::Node::CharclassNode
- Inherits:
-
Packcr::Node
- Object
- Packcr::Node
- Packcr::Node::CharclassNode
- Defined in:
- lib/packcr/node/charclass_node.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
- #debug_dump(indent = 0) ⇒ Object
- #generate_code(gen, onfail, indent, bare) ⇒ Object
- #link_references(ctx) ⇒ Object
- #verify_captures(ctx, capts) ⇒ Object
- #verify_variables(vars) ⇒ Object
Instance Attribute Details
#value ⇒ Object
Returns the value of attribute value.
4 5 6 |
# File 'lib/packcr/node/charclass_node.rb', line 4 def value @value end |
Instance Method Details
#debug_dump(indent = 0) ⇒ Object
6 7 8 9 10 |
# File 'lib/packcr/node/charclass_node.rb', line 6 def debug_dump(indent = 0) $stdout.print "#{" " * indent}Charclass(value:'" Packcr.dump_escaped_string(value) $stdout.print "')\n" end |
#generate_code(gen, onfail, indent, bare) ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/packcr/node/charclass_node.rb', line 12 def generate_code(gen, onfail, indent, ) if gen.ascii return generate_ascii_code(gen, onfail, indent, ) else return generate_utf8_charclass_code(gen, onfail, indent, ) end end |
#link_references(ctx) ⇒ Object
26 27 |
# File 'lib/packcr/node/charclass_node.rb', line 26 def link_references(ctx) end |
#verify_captures(ctx, capts) ⇒ Object
23 24 |
# File 'lib/packcr/node/charclass_node.rb', line 23 def verify_captures(ctx, capts) end |
#verify_variables(vars) ⇒ Object
20 21 |
# File 'lib/packcr/node/charclass_node.rb', line 20 def verify_variables(vars) end |