Class: RBNF::Except

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

Overview

Exception node

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



81
82
83
# File 'lib/rbnf/nodes.rb', line 81

def match(s)
  a=~s && !b=~s
end

#to_sObject



78
79
80
# File 'lib/rbnf/nodes.rb', line 78

def to_s
  "( #{a} - #{b} )"
end