Class: Lexdrill::Beat::LoopInfo

Inherits:
Struct
  • Object
show all
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

Instance Attribute Details

#chunk_endObject

Returns the value of attribute chunk_end

Returns:

  • (Object)

    the current value of chunk_end



32
33
34
# File 'lib/lexdrill/beat.rb', line 32

def chunk_end
  @chunk_end
end

#chunk_startObject

Returns the value of attribute chunk_start

Returns:

  • (Object)

    the current value of chunk_start



32
33
34
# File 'lib/lexdrill/beat.rb', line 32

def chunk_start
  @chunk_start
end

#indexObject

Returns the value of attribute index

Returns:

  • (Object)

    the current value of index



32
33
34
# File 'lib/lexdrill/beat.rb', line 32

def index
  @index
end

#loop_numberObject

Returns the value of attribute loop_number

Returns:

  • (Object)

    the current value of loop_number



32
33
34
# File 'lib/lexdrill/beat.rb', line 32

def loop_number
  @loop_number
end

#total_loopsObject

Returns the value of attribute total_loops

Returns:

  • (Object)

    the current value of total_loops



32
33
34
# File 'lib/lexdrill/beat.rb', line 32

def total_loops
  @total_loops
end