Class: Mirah::JVM::Compiler::JVMBytecode::ImplicitSelf
- Inherits:
-
Object
- Object
- Mirah::JVM::Compiler::JVMBytecode::ImplicitSelf
- Defined in:
- lib/mirah/jvm/compiler/jvm_bytecode.rb
Instance Attribute Summary collapse
-
#inferred_type ⇒ Object
readonly
Returns the value of attribute inferred_type.
Instance Method Summary collapse
- #compile(compiler, expression) ⇒ Object
-
#initialize(type) ⇒ ImplicitSelf
constructor
A new instance of ImplicitSelf.
Constructor Details
#initialize(type) ⇒ ImplicitSelf
Returns a new instance of ImplicitSelf.
30 31 32 |
# File 'lib/mirah/jvm/compiler/jvm_bytecode.rb', line 30 def initialize(type) @inferred_type = type end |
Instance Attribute Details
#inferred_type ⇒ Object (readonly)
Returns the value of attribute inferred_type.
28 29 30 |
# File 'lib/mirah/jvm/compiler/jvm_bytecode.rb', line 28 def inferred_type @inferred_type end |
Instance Method Details
#compile(compiler, expression) ⇒ Object
34 35 36 |
# File 'lib/mirah/jvm/compiler/jvm_bytecode.rb', line 34 def compile(compiler, expression) compiler.compile_self if expression end |