Class: Noiseless::AST::Bool

Inherits:
Node
  • Object
show all
Defined in:
lib/noiseless/ast/bool.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Node

#to_h

Constructor Details

#initialize(must: [], filter: [], should: []) ⇒ Bool

Returns a new instance of Bool.



8
9
10
11
12
13
# File 'lib/noiseless/ast/bool.rb', line 8

def initialize(must: [], filter: [], should: [])
  super()
  @must = must
  @filter = filter
  @should = should
end

Instance Attribute Details

#filterObject (readonly)

Returns the value of attribute filter.



6
7
8
# File 'lib/noiseless/ast/bool.rb', line 6

def filter
  @filter
end

#mustObject (readonly)

Returns the value of attribute must.



6
7
8
# File 'lib/noiseless/ast/bool.rb', line 6

def must
  @must
end

#shouldObject (readonly)

Returns the value of attribute should.



6
7
8
# File 'lib/noiseless/ast/bool.rb', line 6

def should
  @should
end