Class: Itools::SearchResult

Inherits:
Object
  • Object
show all
Defined in:
lib/itools/string_searcher.rb

Overview

搜索结果类

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(tempName, tempInLine, tempResultStr, tempKeyStr) ⇒ SearchResult

Returns a new instance of SearchResult.



20
21
22
23
24
25
# File 'lib/itools/string_searcher.rb', line 20

def initialize(tempName,tempInLine,tempResultStr,tempKeyStr)
   @file_name = tempName
   @in_line = tempInLine
   @result_str = tempResultStr
   @key_str = tempKeyStr
end

Instance Attribute Details

#file_nameObject

Returns the value of attribute file_name.



18
19
20
# File 'lib/itools/string_searcher.rb', line 18

def file_name
  @file_name
end

#in_lineObject

Returns the value of attribute in_line.



18
19
20
# File 'lib/itools/string_searcher.rb', line 18

def in_line
  @in_line
end

#key_strObject

Returns the value of attribute key_str.



18
19
20
# File 'lib/itools/string_searcher.rb', line 18

def key_str
  @key_str
end

#result_strObject

Returns the value of attribute result_str.



18
19
20
# File 'lib/itools/string_searcher.rb', line 18

def result_str
  @result_str
end