class ABNF::Var::Term

Attributes

natset[R]

Public Class Methods

_new(natset)
Alias for: new
new(natset) click to toggle source
# File lib/abnf/grammar.rb, line 163
def Term.new(natset)
  if natset.empty?
    EmptySet
  else
    Term._new(natset)
  end
end
Also aliased as: _new
new(natset) click to toggle source
# File lib/abnf/grammar.rb, line 171
def initialize(natset)
  @natset = natset
end

Public Instance Methods

each_var(&block) click to toggle source
# File lib/abnf/grammar.rb, line 180
def each_var(&block) end
empty_set?() click to toggle source
# File lib/abnf/grammar.rb, line 176
def empty_set?
  @natset.empty?
end
subst_var(&block) click to toggle source
# File lib/abnf/grammar.rb, line 181
def subst_var(&block) self end