Class: Inch::Codebase::Proxy

Inherits:
Object
  • Object
show all
Defined in:
lib/inch/codebase/proxy.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(language, provider) ⇒ Proxy

Returns a new instance of Proxy.



6
7
8
# File 'lib/inch/codebase/proxy.rb', line 6

def initialize(language, provider)
  @objects = Codebase::Objects.new(language, provider.objects)
end

Instance Attribute Details

#objectsObject (readonly)

Returns the value of attribute objects.



4
5
6
# File 'lib/inch/codebase/proxy.rb', line 4

def objects
  @objects
end

Class Method Details

.parse(dir, config) ⇒ Object



10
11
12
13
# File 'lib/inch/codebase/proxy.rb', line 10

def self.parse(dir, config)
  provider = CodeObject::Provider.parse(dir, config)
  new(config.language, provider)
end