Class: GrepDocTree::Line_info

Inherits:
Struct
  • Object
show all
Defined in:
lib/giblish-search.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#lineObject

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



11
12
13
# File 'lib/giblish-search.rb', line 11

def line
  @line
end

#line_noObject

Returns the value of attribute line_no

Returns:

  • (Object)

    the current value of line_no



11
12
13
# File 'lib/giblish-search.rb', line 11

def line_no
  @line_no
end