Class: BiteScript::CustomClassWriter

Inherits:
ASM::ClassWriter
  • Object
show all
Defined in:
lib/bitescript/builder.rb,
lib/bitescript/asm3/builder.rb

Instance Method Summary collapse

Constructor Details

#initialize(*args, &block) ⇒ CustomClassWriter

Returns a new instance of CustomClassWriter.



211
212
213
214
# File 'lib/bitescript/builder.rb', line 211

def initialize(*args, &block)
  super(*args)
  @widen_proc = block
end

Instance Method Details

#getCommonSuperClass(a, b) ⇒ Object



215
216
217
218
219
220
221
222
# File 'lib/bitescript/builder.rb', line 215

def getCommonSuperClass(a, b)
  if @widen_proc
    result = @widen_proc.call(a, b)
    result
  else
    super
  end
end