Class: Ruleby::Ferrari::PatternContainer

Inherits:
Object
  • Object
show all
Defined in:
lib/dsl/ferrari.rb

Instance Method Summary collapse

Constructor Details

#initialize(condition) ⇒ PatternContainer

Returns a new instance of PatternContainer.



181
182
183
# File 'lib/dsl/ferrari.rb', line 181

def initialize(condition)
  @condition = condition
end

Instance Method Details

#and?Boolean

Returns:

  • (Boolean)


198
199
200
# File 'lib/dsl/ferrari.rb', line 198

def and?
  false
end

#build(builder) ⇒ Object



185
186
187
# File 'lib/dsl/ferrari.rb', line 185

def build(builder)
  builder.when(*@condition)
end

#or?Boolean

Returns:

  • (Boolean)


194
195
196
# File 'lib/dsl/ferrari.rb', line 194

def or?
  false
end

#process_treeObject



189
190
191
192
# File 'lib/dsl/ferrari.rb', line 189

def process_tree
  # there is no tree to process
  false
end