Exception: I18nExtract::ExtractError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/i18n_extract/extractor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nodeObject (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

#messageObject



15
16
17
18
# File 'lib/i18n_extract/extractor.rb', line 15

def message
  msg = super
  "#{msg}: #{node.location.to_s}"
end