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
LEN = 60 | |
LIMIT = 12 | |
phrase = nil | |
begin | |
puts "Enter phrase. #{LEN} characters or less." | |
phrase = gets.chomp | |
end while phrase.length > LEN |
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
# Fancy benchmark... | |
# is respond_to? so faster than include? | |
require 'benchmark' | |
n = 10_000_000 | |
mock_methods = ('a'..'z').to_a | |
class Mock | |
end |
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
# Fancy benchmark... | |
# is respond_to? so faster than include? | |
require 'benchmark' | |
n = 10_000_000 | |
mock_methods = ('a'..'z').to_a | |
class Mock | |
end |