Class: TypeProf::Core::SplatBox
- Defined in:
- lib/typeprof/core/graph/box.rb
Instance Attribute Summary collapse
-
#ary ⇒ Object
readonly
Returns the value of attribute ary.
-
#ret ⇒ Object
readonly
Returns the value of attribute ret.
Attributes inherited from Box
Instance Method Summary collapse
-
#initialize(node, genv, ary) ⇒ SplatBox
constructor
A new instance of SplatBox.
- #run0(genv, changes) ⇒ Object
Methods inherited from Box
#destroy, #diagnostics, #on_type_added, #on_type_removed, #reuse, #run, #to_s
Constructor Details
Instance Attribute Details
#ary ⇒ Object (readonly)
Returns the value of attribute ary.
295 296 297 |
# File 'lib/typeprof/core/graph/box.rb', line 295 def ary @ary end |
#ret ⇒ Object (readonly)
Returns the value of attribute ret.
295 296 297 |
# File 'lib/typeprof/core/graph/box.rb', line 295 def ret @ret end |
Instance Method Details
#run0(genv, changes) ⇒ Object
297 298 299 300 301 302 303 304 305 306 |
# File 'lib/typeprof/core/graph/box.rb', line 297 def run0(genv, changes) @ary.each_type do |ty| ty = ty.base_type(genv) if ty.mod == genv.mod_ary changes.add_edge(genv, ty.args[0], @ret) else "???" end end end |