Class: GrepDocTree::Line_info
- Inherits:
-
Struct
- Object
- Struct
- GrepDocTree::Line_info
- Defined in:
- lib/giblish-search.rb
Instance Attribute Summary collapse
-
#line ⇒ Object
Returns the value of attribute line.
-
#line_no ⇒ Object
Returns the value of attribute line_no.
Instance Method Summary collapse
-
#initialize(line, line_no) ⇒ Line_info
constructor
A new instance of Line_info.
Constructor Details
#initialize(line, line_no) ⇒ Line_info
Returns a new instance of Line_info.
12 13 14 15 |
# File 'lib/giblish-search.rb', line 12 def initialize(line,line_no) self.line = line self.line_no = Integer(line_no) end |
Instance Attribute Details
#line ⇒ Object
Returns the value of attribute line
11 12 13 |
# File 'lib/giblish-search.rb', line 11 def line @line end |
#line_no ⇒ Object
Returns the value of attribute line_no
11 12 13 |
# File 'lib/giblish-search.rb', line 11 def line_no @line_no end |