Method: Test::Unit::Assertions::RubyReflector#cycle

Defined in:
lib/assert2/ripper_reflector.rb

#cycle(args, tween = nil) ⇒ Object



131
132
133
134
135
136
137
138
139
140
141
142
143
144
# File 'lib/assert2/ripper_reflector.rb', line 131

def cycle(args, tween = nil)
  waz = false
  args.each do |arg| 
    if arg and arg != []
      sink tween if tween and waz
      if arg.class == Array and arg.first.class == Array
        cycle arg, tween
      else
        sender arg
      end
      waz = true
    end
  end
end