Class: Blondie::Linter

Inherits:
Object
  • Object
show all
Defined in:
lib/blondie.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ Linter

Returns a new instance of Linter.



11
12
13
# File 'lib/blondie.rb', line 11

def initialize(path)
  @gemfile_path = path
end

Instance Attribute Details

#gemfile_pathObject (readonly)

Returns the value of attribute gemfile_path.



9
10
11
# File 'lib/blondie.rb', line 9

def gemfile_path
  @gemfile_path
end

Instance Method Details

#gems_with_extensions_listObject



15
16
17
18
19
# File 'lib/blondie.rb', line 15

def gems_with_extensions_list
  builder = Blondie::Builder.new(gemfile_path)
  checker = Blondie::Checker.new(builder.urls)
  checker.gems_with_extensions
end