Class: Parser::Client
- Inherits:
-
Object
- Object
- Parser::Client
- Defined in:
- lib/parser/client.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#file ⇒ Object
readonly
Returns the value of attribute file.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(file, options = {}) ⇒ Client
constructor
A new instance of Client.
- #parse ⇒ Object
Constructor Details
#initialize(file, options = {}) ⇒ Client
Returns a new instance of Client.
14 15 16 17 |
# File 'lib/parser/client.rb', line 14 def initialize(file, = {}) @file = file = end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
8 9 10 |
# File 'lib/parser/client.rb', line 8 def data @data end |
#file ⇒ Object (readonly)
Returns the value of attribute file.
8 9 10 |
# File 'lib/parser/client.rb', line 8 def file @file end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
8 9 10 |
# File 'lib/parser/client.rb', line 8 def end |
Class Method Details
.parse(file, options = {}) ⇒ Object
10 11 12 |
# File 'lib/parser/client.rb', line 10 def self.parse(file, = {}) new(file, ).parse end |
Instance Method Details
#parse ⇒ Object
19 20 21 22 |
# File 'lib/parser/client.rb', line 19 def parse read_file print_data end |