Class: Line

Inherits:
Object
  • Object
show all
Defined in:
lib/classes/line.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(number, content, filename) ⇒ Line

Returns a new instance of Line.



4
5
6
7
8
# File 'lib/classes/line.rb', line 4

def initialize(number, content, filename)
  @number = number
  @content = content
  @filename = filename
end

Instance Attribute Details

#contentObject (readonly)

Returns the value of attribute content.



2
3
4
# File 'lib/classes/line.rb', line 2

def content
  @content
end

#filenameObject (readonly)

Returns the value of attribute filename.



2
3
4
# File 'lib/classes/line.rb', line 2

def filename
  @filename
end

#numberObject (readonly)

Returns the value of attribute number.



2
3
4
# File 'lib/classes/line.rb', line 2

def number
  @number
end