Class: Lowkey::ClassProxy

Inherits:
ModuleProxy show all
Defined in:
lib/proxies/class_proxy.rb

Instance Attribute Summary collapse

Attributes inherited from ModuleProxy

#class_methods, #keyed_methods, #method_calls, #namespace, #private_start_line

Attributes inherited from Proxy

#name

Instance Method Summary collapse

Methods inherited from ModuleProxy

#[], class_method?

Methods included from Query

#namespace, #query

Constructor Details

#initialize(node:, name:, namespace:, source:) ⇒ ClassProxy

Returns a new instance of ClassProxy.



9
10
11
12
13
14
# File 'lib/proxies/class_proxy.rb', line 9

def initialize(node:, name:, namespace:, source:)
  super(node:, name:, namespace:, source:)

  @instance_methods = {}
  @class_binding = nil
end

Instance Attribute Details

#class_bindingObject

Returns the value of attribute class_binding.



7
8
9
# File 'lib/proxies/class_proxy.rb', line 7

def class_binding
  @class_binding
end

#instance_methodsObject

Returns the value of attribute instance_methods.



7
8
9
# File 'lib/proxies/class_proxy.rb', line 7

def instance_methods
  @instance_methods
end