Class: RegularExpression::AST::Period
- Inherits:
-
Object
- Object
- RegularExpression::AST::Period
- Defined in:
- lib/regular_expression/ast.rb
Instance Method Summary collapse
Instance Method Details
#to_dot(parent) ⇒ Object
197 198 199 |
# File 'lib/regular_expression/ast.rb', line 197 def to_dot(parent) parent.add_node(object_id, label: ".", shape: "box") end |
#to_nfa(start, finish) ⇒ Object
201 202 203 204 |
# File 'lib/regular_expression/ast.rb', line 201 def to_nfa(start, finish) transition = NFA::Transition::Any.new(finish) start.add_transition(transition) end |