Class: BiteScript::CustomClassWriter
- Inherits:
-
ASM::ClassWriter
- Object
- ASM::ClassWriter
- BiteScript::CustomClassWriter
- Defined in:
- lib/bitescript/builder.rb,
lib/bitescript/asm3/builder.rb
Instance Method Summary collapse
- #getCommonSuperClass(a, b) ⇒ Object
-
#initialize(*args, &block) ⇒ CustomClassWriter
constructor
A new instance of CustomClassWriter.
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 |