class SayItWithGraphs::Line

Attributes

at[RW]
line_number[R]
position[RW]

Public Class Methods

new(position = 0, line_number = 1) click to toggle source
# File lib/say_it_with_graphs/line.rb, line 8
def initialize(position = 0, line_number = 1)
  @position = position
  @line_number = line_number
end

Public Instance Methods

[](key) click to toggle source
# File lib/say_it_with_graphs/line.rb, line 13
def [](key)
  @line_number = key
  self
end