Class: Cheri::Java::Builder::BaseBuilder

Inherits:
Builder::BaseBuilder show all
Defined in:
lib/cheri/java/builder/main.rb

Overview

self

Instance Method Summary collapse

Methods inherited from Builder::BaseBuilder

#child?, #parent?

Methods included from Builder::Builder

#args, #child?, #parent?, #sym

Methods included from Builder::Frame

#any?, #block, #child?, #ctx, #inspect, #object, #parent?

Constructor Details

#initialize(ctx, sym, *args, &block) ⇒ BaseBuilder

Returns a new instance of BaseBuilder.



67
68
69
70
# File 'lib/cheri/java/builder/main.rb', line 67

def initialize(ctx,sym,*args,&block)
  super
  @props = @args.pop if Hash === args.last
end

Instance Method Details

#modObject



72
73
74
# File 'lib/cheri/java/builder/main.rb', line 72

def mod
  Cheri::Java::Builder
end

#propsObject



86
87
88
# File 'lib/cheri/java/builder/main.rb', line 86

def props
  @props
end

#resolve?Boolean

Returns:

  • (Boolean)


90
91
92
# File 'lib/cheri/java/builder/main.rb', line 90

def resolve?
  @resolve  
end

#runObject



76
77
78
79
80
81
82
83
84
# File 'lib/cheri/java/builder/main.rb', line 76

def run
  pre
  # we add the resolve_ctor method, not defined in Cheri::Builder::BaseBuilder
  resolve_ctor if @resolve
  create unless @no_create
  post
  call unless @no_call
  @obj
end