Class: Ruleby::Ferrari::PatternContainer
- Inherits:
-
Object
- Object
- Ruleby::Ferrari::PatternContainer
- Defined in:
- lib/dsl/ferrari.rb
Instance Method Summary collapse
- #and? ⇒ Boolean
- #build(builder) ⇒ Object
-
#initialize(condition) ⇒ PatternContainer
constructor
A new instance of PatternContainer.
- #or? ⇒ Boolean
- #process_tree ⇒ Object
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
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
194 195 196 |
# File 'lib/dsl/ferrari.rb', line 194 def or? false end |
#process_tree ⇒ Object
189 190 191 192 |
# File 'lib/dsl/ferrari.rb', line 189 def process_tree # there is no tree to process false end |