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.



216
217
218
219
# File 'lib/bitescript/builder.rb', line 216

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

Instance Method Details

#getCommonSuperClass(a, b) ⇒ Object



220
221
222
223
224
225
226
227
# File 'lib/bitescript/builder.rb', line 220

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