Class: I18nContextGenerator::Searcher::Match
- Inherits:
-
Data
- Object
- Data
- I18nContextGenerator::Searcher::Match
- Defined in:
- lib/i18n_context_generator/searcher.rb
Overview
Represents a code match with surrounding context
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
-
#enclosing_scope ⇒ Object
readonly
Returns the value of attribute enclosing_scope.
-
#file ⇒ Object
readonly
Returns the value of attribute file.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
-
#match_line ⇒ Object
readonly
Returns the value of attribute match_line.
Instance Method Summary collapse
-
#initialize(file:, line:, match_line: '', context: '', enclosing_scope: nil) ⇒ Match
constructor
A new instance of Match.
Constructor Details
#initialize(file:, line:, match_line: '', context: '', enclosing_scope: nil) ⇒ Match
Returns a new instance of Match.
20 21 22 |
# File 'lib/i18n_context_generator/searcher.rb', line 20 def initialize(file:, line:, match_line: '', context: '', enclosing_scope: nil) super end |
Instance Attribute Details
#context ⇒ Object (readonly)
Returns the value of attribute context
19 20 21 |
# File 'lib/i18n_context_generator/searcher.rb', line 19 def context @context end |
#enclosing_scope ⇒ Object (readonly)
Returns the value of attribute enclosing_scope
19 20 21 |
# File 'lib/i18n_context_generator/searcher.rb', line 19 def enclosing_scope @enclosing_scope end |
#file ⇒ Object (readonly)
Returns the value of attribute file
19 20 21 |
# File 'lib/i18n_context_generator/searcher.rb', line 19 def file @file end |
#line ⇒ Object (readonly)
Returns the value of attribute line
19 20 21 |
# File 'lib/i18n_context_generator/searcher.rb', line 19 def line @line end |
#match_line ⇒ Object (readonly)
Returns the value of attribute match_line
19 20 21 |
# File 'lib/i18n_context_generator/searcher.rb', line 19 def match_line @match_line end |