Class: Babelyoda::LongTranslation

Inherits:
Object
  • Object
show all
Defined in:
lib/babelyoda/length_checker.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#contextObject

Returns the value of attribute context.



52
53
54
# File 'lib/babelyoda/length_checker.rb', line 52

def context
  @context
end

#dev_textObject

Returns the value of attribute dev_text.



50
51
52
# File 'lib/babelyoda/length_checker.rb', line 50

def dev_text
  @dev_text
end

#textObject

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