Class: Mahoujin::Atoms::SpecificRepetition
- Inherits:
-
Object
- Object
- Mahoujin::Atoms::SpecificRepetition
- Defined in:
- lib/mahoujin/atoms/specific_repetition.rb
Instance Attribute Summary collapse
-
#atom ⇒ Object
readonly
Returns the value of attribute atom.
-
#number ⇒ Object
readonly
Returns the value of attribute number.
Instance Method Summary collapse
-
#initialize(atom, number) ⇒ SpecificRepetition
constructor
A new instance of SpecificRepetition.
Constructor Details
#initialize(atom, number) ⇒ SpecificRepetition
Returns a new instance of SpecificRepetition.
6 7 8 |
# File 'lib/mahoujin/atoms/specific_repetition.rb', line 6 def initialize(atom, number) @atom, @number = atom, number end |
Instance Attribute Details
#atom ⇒ Object (readonly)
Returns the value of attribute atom.
4 5 6 |
# File 'lib/mahoujin/atoms/specific_repetition.rb', line 4 def atom @atom end |
#number ⇒ Object (readonly)
Returns the value of attribute number.
4 5 6 |
# File 'lib/mahoujin/atoms/specific_repetition.rb', line 4 def number @number end |