Class: I18n::Index::Occurence
Instance Attribute Summary collapse
-
#filename ⇒ Object
readonly
Returns the value of attribute filename.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#position ⇒ Object
readonly
Returns the value of attribute position.
Instance Method Summary collapse
- #==(other) ⇒ Object (also: #eql?)
-
#initialize(key, filename, position) ⇒ Occurence
constructor
A new instance of Occurence.
Constructor Details
#initialize(key, filename, position) ⇒ Occurence
Returns a new instance of Occurence.
6 7 8 9 10 |
# File 'lib/i18n/index/occurence.rb', line 6 def initialize(key, filename, position) @key = key @filename = filename @position = position end |
Instance Attribute Details
#filename ⇒ Object (readonly)
Returns the value of attribute filename.
4 5 6 |
# File 'lib/i18n/index/occurence.rb', line 4 def filename @filename end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
4 5 6 |
# File 'lib/i18n/index/occurence.rb', line 4 def key @key end |
#position ⇒ Object (readonly)
Returns the value of attribute position.
4 5 6 |
# File 'lib/i18n/index/occurence.rb', line 4 def position @position end |
Instance Method Details
#==(other) ⇒ Object Also known as: eql?
12 13 14 |
# File 'lib/i18n/index/occurence.rb', line 12 def ==(other) key == other.key && filename == other.filename && position == other.position end |