Class: Lexdrill::Beat::LoopInfo
- Inherits:
-
Struct
- Object
- Struct
- Lexdrill::Beat::LoopInfo
- Defined in:
- lib/lexdrill/beat.rb
Overview
index: 0-based word index. chunk_start/chunk_end: 1-based word positions spanned by the current loop. loop_number: which repeat pass (1-based) through the current loop. total_loops: the configured repetitions.
Instance Attribute Summary collapse
-
#chunk_end ⇒ Object
Returns the value of attribute chunk_end.
-
#chunk_start ⇒ Object
Returns the value of attribute chunk_start.
-
#index ⇒ Object
Returns the value of attribute index.
-
#loop_number ⇒ Object
Returns the value of attribute loop_number.
-
#total_loops ⇒ Object
Returns the value of attribute total_loops.
Instance Attribute Details
#chunk_end ⇒ Object
Returns the value of attribute chunk_end
32 33 34 |
# File 'lib/lexdrill/beat.rb', line 32 def chunk_end @chunk_end end |
#chunk_start ⇒ Object
Returns the value of attribute chunk_start
32 33 34 |
# File 'lib/lexdrill/beat.rb', line 32 def chunk_start @chunk_start end |
#index ⇒ Object
Returns the value of attribute index
32 33 34 |
# File 'lib/lexdrill/beat.rb', line 32 def index @index end |
#loop_number ⇒ Object
Returns the value of attribute loop_number
32 33 34 |
# File 'lib/lexdrill/beat.rb', line 32 def loop_number @loop_number end |
#total_loops ⇒ Object
Returns the value of attribute total_loops
32 33 34 |
# File 'lib/lexdrill/beat.rb', line 32 def total_loops @total_loops end |