Class: Fabulator::Grammar::Expr::RuleRef

Inherits:
Object
  • Object
show all
Defined in:
lib/fabulator/grammar/expr/rule_ref.rb

Instance Method Summary collapse

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_regexObject



9
10
11
# File 'lib/fabulator/grammar/expr/rule_ref.rb', line 9

def to_regex
  %r{}
end