Class: CastOff::Compiler::CodeManager::CompilationTarget
- Inherits:
-
Object
- Object
- CastOff::Compiler::CodeManager::CompilationTarget
- Includes:
- Util
- Defined in:
- lib/cast_off/compile/code_manager.rb
Instance Attribute Summary collapse
-
#method_id ⇒ Object
readonly
Returns the value of attribute method_id.
-
#target_object ⇒ Object
readonly
Returns the value of attribute target_object.
Instance Method Summary collapse
-
#initialize(target, mid, singleton) ⇒ CompilationTarget
constructor
A new instance of CompilationTarget.
- #singleton_method? ⇒ Boolean
Methods included from Util
Constructor Details
#initialize(target, mid, singleton) ⇒ CompilationTarget
Returns a new instance of CompilationTarget.
131 132 133 134 135 136 137 |
# File 'lib/cast_off/compile/code_manager.rb', line 131 def initialize(target, mid, singleton) @target_object = target @method_id = mid @singleton_p = singleton bug() unless @method_id.is_a?(Symbol) bug() unless @singleton_p == true || @singleton_p == false end |
Instance Attribute Details
#method_id ⇒ Object (readonly)
Returns the value of attribute method_id.
129 130 131 |
# File 'lib/cast_off/compile/code_manager.rb', line 129 def method_id @method_id end |
#target_object ⇒ Object (readonly)
Returns the value of attribute target_object.
129 130 131 |
# File 'lib/cast_off/compile/code_manager.rb', line 129 def target_object @target_object end |
Instance Method Details
#singleton_method? ⇒ Boolean
139 140 141 |
# File 'lib/cast_off/compile/code_manager.rb', line 139 def singleton_method? @singleton_p end |