Class: Gems::Parser

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(file) ⇒ Parser

Returns a new instance of Parser.



5
6
7
# File 'lib/gems/parser.rb', line 5

def initialize(file)
  @file = file
end

Instance Attribute Details

#fileObject (readonly)

Returns the value of attribute file.



3
4
5
# File 'lib/gems/parser.rb', line 3

def file
  @file
end

Instance Method Details

#gemsObject



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

def gems
  @gems ||= parse_gems
end