Class: Babelyoda::LongTranslation
- Inherits:
-
Object
- Object
- Babelyoda::LongTranslation
- Defined in:
- lib/babelyoda/length_checker.rb
Instance Attribute Summary collapse
-
#context ⇒ Object
Returns the value of attribute context.
-
#dev_text ⇒ Object
Returns the value of attribute dev_text.
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
- #==(other_obj) ⇒ Object
-
#initialize(dev_text, text, context) ⇒ LongTranslation
constructor
A new instance of LongTranslation.
Constructor Details
#initialize(dev_text, text, context) ⇒ LongTranslation
Returns a new instance of LongTranslation.
54 55 56 57 58 |
# File 'lib/babelyoda/length_checker.rb', line 54 def initialize(dev_text, text, context) @dev_text = dev_text @text = text @context = context end |
Instance Attribute Details
#context ⇒ Object
Returns the value of attribute context.
52 53 54 |
# File 'lib/babelyoda/length_checker.rb', line 52 def context @context end |
#dev_text ⇒ Object
Returns the value of attribute dev_text.
50 51 52 |
# File 'lib/babelyoda/length_checker.rb', line 50 def dev_text @dev_text end |
#text ⇒ Object
Returns the value of attribute text.
51 52 53 |
# File 'lib/babelyoda/length_checker.rb', line 51 def text @text end |
Instance Method Details
#==(other_obj) ⇒ Object
60 61 62 63 64 65 |
# File 'lib/babelyoda/length_checker.rb', line 60 def ==(other_obj) dev_texts_equal = @dev_text == other_obj.dev_text texts_equal = @text == other_obj.text contexts_equal = @context == other_obj.context dev_texts_equal && texts_equal && contexts_equal end |