Class: I18nChecker::Unused::Text

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/i18n_checker/unused/text.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(file:, text:) ⇒ Text

Returns a new instance of Text.



12
13
14
15
# File 'lib/i18n_checker/unused/text.rb', line 12

def initialize(file:, text:)
  @file = file
  @text = text
end

Instance Attribute Details

#fileObject (readonly)

Returns the value of attribute file.



8
9
10
# File 'lib/i18n_checker/unused/text.rb', line 8

def file
  @file
end

#textObject (readonly)

Returns the value of attribute text.



8
9
10
# File 'lib/i18n_checker/unused/text.rb', line 8

def text
  @text
end