Module: Bk201::Asm
- Defined in:
- lib/bk201.rb
Overview
module to be extended
Instance Method Summary collapse
Instance Method Details
#asm_method(type, name, n_params) {|asm| ... } ⇒ Object
44 45 46 47 48 49 50 51 |
# File 'lib/bk201.rb', line 44 def asm_method type, name, n_params # class self will be passed to Bk201.asm_method # so extend, not include. raise 'extend Bk201::Compile, not include' unless self.is_a? Class asm = Bk201::AsmProxy.new yield asm Bk201.asm_method self, name.to_s, type, n_params, asm.code.join end |