Exception: I18nExtract::ExtractError
- Inherits:
-
StandardError
- Object
- StandardError
- I18nExtract::ExtractError
- Defined in:
- lib/i18n_extract/extractor.rb
Instance Attribute Summary collapse
-
#node ⇒ Object
readonly
Returns the value of attribute node.
Instance Method Summary collapse
-
#initialize(node, *args) ⇒ ExtractError
constructor
A new instance of ExtractError.
- #message ⇒ Object
Constructor Details
#initialize(node, *args) ⇒ ExtractError
Returns a new instance of ExtractError.
10 11 12 13 |
# File 'lib/i18n_extract/extractor.rb', line 10 def initialize(node, *args) super *args @node = node end |
Instance Attribute Details
#node ⇒ Object (readonly)
Returns the value of attribute node.
9 10 11 |
# File 'lib/i18n_extract/extractor.rb', line 9 def node @node end |
Instance Method Details
#message ⇒ Object
15 16 17 18 |
# File 'lib/i18n_extract/extractor.rb', line 15 def msg = super "#{msg}: #{node.location.to_s}" end |