Class: Docks::Parser

Inherits:
Object
  • Object
show all
Includes:
FromHash
Defined in:
lib/docks/parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#filenameObject

Returns the value of attribute filename.



4
5
6
# File 'lib/docks/parser.rb', line 4

def filename
  @filename
end

#listObject

Returns the value of attribute list.



4
5
6
# File 'lib/docks/parser.rb', line 4

def list
  @list
end

Instance Method Details

#to_sObject



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

def to_s
  lines.join("\n")
end