Class: Fabulator::Grammar::Expr::RuleRef
- Inherits:
-
Object
- Object
- Fabulator::Grammar::Expr::RuleRef
- Defined in:
- lib/fabulator/grammar/expr/rule_ref.rb
Instance Method Summary collapse
-
#initialize(qname) ⇒ RuleRef
constructor
A new instance of RuleRef.
- #to_regex ⇒ Object
Constructor Details
#initialize(qname) ⇒ RuleRef
Returns a new instance of RuleRef.
3 4 5 6 7 |
# File 'lib/fabulator/grammar/expr/rule_ref.rb', line 3 def initialize(qname) bits = qname.split(/:/,2) @ns_prefix = bits[0] @name = bits[1] end |
Instance Method Details
#to_regex ⇒ Object
9 10 11 |
# File 'lib/fabulator/grammar/expr/rule_ref.rb', line 9 def to_regex %r{} end |