Class: Itools::SearchResult
- Inherits:
-
Object
- Object
- Itools::SearchResult
- Defined in:
- lib/itools/string_searcher.rb
Overview
搜索结果类
Instance Attribute Summary collapse
-
#file_name ⇒ Object
Returns the value of attribute file_name.
-
#in_line ⇒ Object
Returns the value of attribute in_line.
-
#key_str ⇒ Object
Returns the value of attribute key_str.
-
#result_str ⇒ Object
Returns the value of attribute result_str.
Instance Method Summary collapse
-
#initialize(tempName, tempInLine, tempResultStr, tempKeyStr) ⇒ SearchResult
constructor
A new instance of SearchResult.
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_name ⇒ Object
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_line ⇒ Object
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_str ⇒ Object
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_str ⇒ Object
Returns the value of attribute result_str.
18 19 20 |
# File 'lib/itools/string_searcher.rb', line 18 def result_str @result_str end |