Nonogram
Inherits Enumerable < Reference < Object
Constructors
Instance methods
col_hints
Sourcecols
Sourceeach_with_index
Iterates over the collection, yielding both the elements and their index.
["Alice", "Bob"].each_with_index do |user, i|
puts "User ##{i}: #{user}"
end
Prints:
User # 0: Alice
User # 1: Bob
Accepts an optional offset parameter, which tells it to start counting from there. So, a more human friendly version of the previous snippet would be:
["Alice", "Bob"].each_with_index(1) do |user, i|
puts "User ##{i}: #{user}"
end
Which would print:
User # 1: Alice
User # 2: Bob
height
Sourcerow_hints
Sourcerows
Sourcesolve!(complex = true, &) : State
Sourcesolve!(complex = true) : State
Sourceto_s(io)
Sourcewidth
Source