Created
October 13, 2015 16:15
-
-
Save allolex/9dbfffedbf8fec77918d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
module AlphabetTesters | |
def self.a? letter | |
letter.downcase == "a" | |
end | |
def self.b? letter | |
letter.downcase == "b" | |
end | |
def a? letter | |
letter.downcase == "a" | |
end | |
def b? letter | |
letter.downcase == "b" | |
end | |
end |
This file contains hidden or 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_relative "alphabet_testers" | |
include AlphabetTesters | |
puts AlphabetTesters.a? "a" | |
puts AlphabetTesters.b? "b" | |
puts b? "b" | |
puts a? "b" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment