Class: Ykutils::BasicLines
- Inherits:
-
Object
- Object
- Ykutils::BasicLines
- Defined in:
- lib/ykutils/lines.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(line_ary) ⇒ BasicLines
constructor
A new instance of BasicLines.
- #line ⇒ Object
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
#line ⇒ Object
7 8 9 |
# File 'lib/ykutils/lines.rb', line 7 def line @line_ary.shift if @line_ary.size > -1 end |