Class: Cheri::Builder::BaseBuilder
- Inherits:
-
AbstractBuilder
- Object
- AbstractBuilder
- Cheri::Builder::BaseBuilder
- Defined in:
- lib/cheri/builder/base.rb
Overview
A convenience ‘base’ builder class. Breaks the #run method into several steps.
Direct Known Subclasses
Instance Method Summary collapse
-
#child? ⇒ Boolean
Returns ! @not_child.
-
#parent? ⇒ Boolean
Returns ! @not_parent.
- #run ⇒ Object
Methods included from Builder
Methods included from Frame
#any?, #block, #ctx, #initialize, #inspect, #mod, #object
Instance Method Details
#child? ⇒ Boolean
Returns ! @not_child
189 190 191 |
# File 'lib/cheri/builder/base.rb', line 189 def child? ! @not_child end |
#parent? ⇒ Boolean
Returns ! @not_parent
184 185 186 |
# File 'lib/cheri/builder/base.rb', line 184 def parent? ! @not_parent end |
#run ⇒ Object
175 176 177 178 179 180 181 |
# File 'lib/cheri/builder/base.rb', line 175 def run pre create unless @no_create post call unless @no_call @obj end |