class ExcludedClause
Attributes
operand[RW]
Public Class Methods
new(v)
click to toggle source
# File lib/parsing_nesting/tree.rb, line 380 def initialize(v) self.operand = v end
Public Instance Methods
can_embed?()
click to toggle source
# File lib/parsing_nesting/tree.rb, line 384 def can_embed? # right now '-' clauses only apply to terms/phrases, which # we can embed with a '-' in front. true end
negate()
click to toggle source
negating excluded to mandatory is a pretty decent choice
# File lib/parsing_nesting/tree.rb, line 395 def negate MandatoryClause.new(operand) end
simple_pure_negative?()
click to toggle source
# File lib/parsing_nesting/tree.rb, line 399 def simple_pure_negative? true end
to_embed()
click to toggle source
# File lib/parsing_nesting/tree.rb, line 390 def to_embed '-' + operand.to_embed end