Class: Haml::I18n::Extractor::ReplacerResult

Inherits:
Object
  • Object
show all
Defined in:
lib/haml-i18n-extractor/extraction/replacer/replacer_result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_lineObject

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

#pathObject

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_textObject

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_replacedObject

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_nameObject

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

#infoObject



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