Class: Ykutils::BasicLines

Inherits:
Object
  • Object
show all
Defined in:
lib/ykutils/lines.rb

Direct Known Subclasses

FtpOpLines

Instance Method Summary collapse

Constructor Details

#initialize(line_ary) ⇒ BasicLines

Returns a new instance of BasicLines.



3
4
5
# File 'lib/ykutils/lines.rb', line 3

def initialize(line_ary)
  @line_ary = line_ary
end

Instance Method Details

#lineObject



7
8
9
# File 'lib/ykutils/lines.rb', line 7

def line
  @line_ary.shift if @line_ary.size > -1
end