Class: Gems::Parser
- Inherits:
-
Object
- Object
- Gems::Parser
- Defined in:
- lib/gems/parser.rb
Instance Attribute Summary collapse
-
#file ⇒ Object
readonly
Returns the value of attribute file.
Instance Method Summary collapse
- #gems ⇒ Object
-
#initialize(file) ⇒ Parser
constructor
A new instance of Parser.
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
#file ⇒ Object (readonly)
Returns the value of attribute file.
3 4 5 |
# File 'lib/gems/parser.rb', line 3 def file @file end |
Instance Method Details
#gems ⇒ Object
9 10 11 |
# File 'lib/gems/parser.rb', line 9 def gems @gems ||= parse_gems end |