Skip to content

Instantly share code, notes, and snippets.

@sumyapp
Created November 10, 2015 06:49
Show Gist options
  • Save sumyapp/f355d77c8c6fdb02201a to your computer and use it in GitHub Desktop.
Save sumyapp/f355d77c8c6fdb02201a to your computer and use it in GitHub Desktop.
class Dirty
# This method smells of :reek:NestedIterators but ignores them
def awful(x, y, offset = 0, log = false)
puts @screen.title
@screen = widgets.map { |w| w.each { |key| key += 3 * x } }
puts @screen.contents
puts @screen.contents
puts @screen.contents
puts @screen.contents
puts @screen.contents
puts @screen.contents
puts @screen.contents
puts @screen.contents
puts @screen.contents
puts @screen.contents
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment