Class: Cheri::Builder::BaseBuilder

Inherits:
AbstractBuilder show all
Defined in:
lib/cheri/builder/base.rb

Overview

A convenience ‘base’ builder class. Breaks the #run method into several steps.

Direct Known Subclasses

Java::Builder::BaseBuilder

Instance Method Summary collapse

Methods included from Builder

#args, #initialize, #sym

Methods included from Frame

#any?, #block, #ctx, #initialize, #inspect, #mod, #object

Instance Method Details

#child?Boolean

Returns ! @not_child

Returns:

  • (Boolean)


189
190
191
# File 'lib/cheri/builder/base.rb', line 189

def child?
 ! @not_child  
end

#parent?Boolean

Returns ! @not_parent

Returns:

  • (Boolean)


184
185
186
# File 'lib/cheri/builder/base.rb', line 184

def parent?
 ! @not_parent
end

#runObject



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