123456789_123456789_123456789_123456789_123456789_

Class: TypeProf::CRef

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Instance Chain:
Inherits: Object
Defined in: lib/typeprof/analyzer.rb

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Constructor Details

.new(outer, klass, singleton) ⇒ CRef

[ GitHub ]

  
# File 'lib/typeprof/analyzer.rb', line 5

def initialize(outer, klass, singleton)
  @outer = outer
  @klass = klass
  @singleton = singleton
  # flags
  # scope_visi (= method_visi * module_func_flag)
  # refinements
end

Instance Attribute Details

#klass (readonly)

[ GitHub ]

  
# File 'lib/typeprof/analyzer.rb', line 18

attr_reader :outer, :klass, :singleton

#outer (readonly)

[ GitHub ]

  
# File 'lib/typeprof/analyzer.rb', line 18

attr_reader :outer, :klass, :singleton

#singleton (readonly)

[ GitHub ]

  
# File 'lib/typeprof/analyzer.rb', line 18

attr_reader :outer, :klass, :singleton

Instance Method Details

#extend(klass, singleton)

[ GitHub ]

  
# File 'lib/typeprof/analyzer.rb', line 14

def extend(klass, singleton)
  CRef.new(self, klass, singleton)
end

#pretty_print(q)

[ GitHub ]

  
# File 'lib/typeprof/analyzer.rb', line 20

def pretty_print(q)
  q.text "CRef["
  q.pp @klass
  q.text "]"
end