This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AllCops: | |
RunRailsCops: true | |
Documentation: | |
Enabled: false | |
Style/AlignHash: | |
Enabled: false | |
Style/AlignParameters: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'colorize' | |
# find strings in last evaluated output | |
Pry::Commands.command '??', 'where is it' do |*args| | |
prev_out = target.eval '_' | |
if prev_out.nil? | |
output.puts '_ is empty.' | |
elsif args.empty? | |
output.puts 'What?' | |
else |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def is_complete(numbers): | |
if len(numbers) != 9: | |
return False |