Class: Haml::I18n::Extractor::ReplacerResult
- Inherits:
-
Object
- Object
- Haml::I18n::Extractor::ReplacerResult
- Defined in:
- lib/haml-i18n-extractor/extraction/replacer/replacer_result.rb
Instance Attribute Summary collapse
-
#modified_line ⇒ Object
Returns the value of attribute modified_line.
-
#path ⇒ Object
Returns the value of attribute path.
-
#replaced_text ⇒ Object
Returns the value of attribute replaced_text.
-
#should_be_replaced ⇒ Object
Returns the value of attribute should_be_replaced.
-
#t_name ⇒ Object
Returns the value of attribute t_name.
Instance Method Summary collapse
- #info ⇒ Object
-
#initialize(modified_line, t_name, replaced_text, should_be_replaced, path) ⇒ ReplacerResult
constructor
A new instance of ReplacerResult.
Constructor Details
#initialize(modified_line, t_name, replaced_text, should_be_replaced, path) ⇒ ReplacerResult
Returns a new instance of ReplacerResult.
8 9 10 11 12 13 14 |
# File 'lib/haml-i18n-extractor/extraction/replacer/replacer_result.rb', line 8 def initialize(modified_line, t_name, replaced_text, should_be_replaced, path) @modified_line = modified_line @t_name = t_name @replaced_text = replaced_text @should_be_replaced = should_be_replaced @path = path end |
Instance Attribute Details
#modified_line ⇒ Object
Returns the value of attribute modified_line.
6 7 8 |
# File 'lib/haml-i18n-extractor/extraction/replacer/replacer_result.rb', line 6 def modified_line @modified_line end |
#path ⇒ Object
Returns the value of attribute path.
6 7 8 |
# File 'lib/haml-i18n-extractor/extraction/replacer/replacer_result.rb', line 6 def path @path end |
#replaced_text ⇒ Object
Returns the value of attribute replaced_text.
6 7 8 |
# File 'lib/haml-i18n-extractor/extraction/replacer/replacer_result.rb', line 6 def replaced_text @replaced_text end |
#should_be_replaced ⇒ Object
Returns the value of attribute should_be_replaced.
6 7 8 |
# File 'lib/haml-i18n-extractor/extraction/replacer/replacer_result.rb', line 6 def should_be_replaced @should_be_replaced end |
#t_name ⇒ Object
Returns the value of attribute t_name.
6 7 8 |
# File 'lib/haml-i18n-extractor/extraction/replacer/replacer_result.rb', line 6 def t_name @t_name end |
Instance Method Details
#info ⇒ Object
16 17 18 |
# File 'lib/haml-i18n-extractor/extraction/replacer/replacer_result.rb', line 16 def info { :modified_line => @modified_line, :t_name => @t_name, :replaced_text => @replaced_text, :path => @path} end |