Created
January 13, 2014 21:33
-
-
Save timuruski/8408581 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
class CustomerList | |
def initialize(account, filter = nil) | |
@account = account | |
@filter = filter | |
end | |
# That's right, attributes after initializer. | |
attr_reader :account, :filter | |
end |
fixed it for you.
With highlighting, because I just figured out how:
class CustomerList
attr_reader :account, :filter
def initialize(account, filter = nil)
@account = account
@filter = filter
end
end
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
class CustomerList
attr_reader :account, :filter
def initialize(account, filter = nil)
@account = account
@filter = filter
end
end