Class: Kaiseki::NotPredicate

Inherits:
PackageParser show all
Defined in:
lib/predicate_not.rb

Instance Attribute Summary

Attributes inherited from BasicParser

#expected

Instance Method Summary collapse

Methods inherited from PackageParser

#initialize

Methods inherited from BasicParser

#eql?, #initialize

Methods included from Parseable

#&, #action, #and?, #cast, #filter, #list, #merge, #not!, #one_or_more, #optional, #override, #parse, #protect, #repeat, #set, #skip, #tag_error, #tag_result, #to_parseable, #validate, #zero_or_more, #|

Constructor Details

This class inherits a constructor from Kaiseki::PackageParser

Instance Method Details

#predicate?Boolean

Returns:

  • (Boolean)


3
4
5
# File 'lib/predicate_not.rb', line 3

def predicate?
	true
end

#to_sObject



7
8
9
# File 'lib/predicate_not.rb', line 7

def to_s
	"#{@expected}.not!"
end