Class: RBNF::Def

Inherits:
Binary show all
Defined in:
lib/rbnf/nodes.rb

Overview

Node that encapsulates a defined (with RBNF::def or ::define) form.

Constant Summary

Constants included from RBNF

DEFS, VERSION

Instance Attribute Summary

Attributes inherited from Binary

#a, #b

Instance Method Summary collapse

Methods inherited from Binary

#initialize

Methods included from RBNF

#=~, [], #alt, #cat, #comps, def, define, dememoize, #except, #group, method_missing, #opt, #rep, #rep_n

Constructor Details

This class inherits a constructor from RBNF::Binary

Instance Method Details

#match(s) ⇒ Object



40
41
42
# File 'lib/rbnf/nodes.rb', line 40

def match(s)
  b[s]
end

#to_sObject



37
38
39
# File 'lib/rbnf/nodes.rb', line 37

def to_s
  "#{a}"
end