Class: Blondie::Checker

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(urls) ⇒ Checker

Returns a new instance of Checker.



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

def initialize(urls)
  @urls = urls
  @extensions = []
  @gems_with_extensions = []
end

Instance Attribute Details

#urlsObject (readonly)

Returns the value of attribute urls.



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

def urls
  @urls
end

Instance Method Details

#extensionsObject



22
23
24
25
# File 'lib/blondie/checker.rb', line 22

def extensions
  find_extensions if @extensions.empty?
  @extensions
end

#gems_with_extensionsObject



17
18
19
20
# File 'lib/blondie/checker.rb', line 17

def gems_with_extensions
  find_extensions if @gems_with_extensions.empty?
  @gems_with_extensions
end