Sha256: ee8d825d1491c1ac455444194132e7d285fb1b2eb5022c11294b3d407426aede

Contents?: true

Size: 498 Bytes

Versions: 3

Compression:

Stored size: 498 Bytes

Contents

class NestedRepeat1 < Iowa::Component

  attr_accessor :group, :item, :last_item

	def awake
   @list = %w(a1 a2 a3 a4 b1 b2 b3 b4 c1 c2 c3 c4)
	 @last_item = 'nil'
  end

  def groups
    @groups ||= @list.collect {|x| x[1,1]}.uniq
  end

  def items
		Logger['iowa_log'].info "Setting items for #{@group} to #{@list.select {|x| x[1,1] == @group}}"
    @list.select {|x| x[1,1] == @group}
  end

  #proceed_with(:goEdit, 'Editor') {|p| p.target = @item}
	def goEdit
		@last_item = @item
	end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
IOWA-1.0.3 test/TC_IOWAFunctions/iowa/NestedRepeat1.iwa
IOWA-1.0.2 test/TC_IOWAFunctions/iowa/NestedRepeat1.iwa
IOWA-1.0.0 test/TC_IOWAFunctions/iowa/NestedRepeat1.iwa