Class: TranslationRepetitionSet

Inherits:
Object
  • Object
show all
Defined in:
lib/cofgratx/cfg/translation_repetition_set.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(offset = 1, *translations) ⇒ TranslationRepetitionSet

Returns a new instance of TranslationRepetitionSet.



5
6
7
8
# File 'lib/cofgratx/cfg/translation_repetition_set.rb', line 5

def initialize offset = 1, *translations
  self.offset = offset
  self.translations = translations
end

Instance Attribute Details

#offsetObject

Returns the value of attribute offset.



3
4
5
# File 'lib/cofgratx/cfg/translation_repetition_set.rb', line 3

def offset
  @offset
end

#translationsObject

Returns the value of attribute translations.



3
4
5
# File 'lib/cofgratx/cfg/translation_repetition_set.rb', line 3

def translations
  @translations
end