Created
April 8, 2016 19:34
-
-
Save theotherdon/e8795b210b1e0fad1d489c3f642ac1e3 to your computer and use it in GitHub Desktop.
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 inspect | |
inspection = column_names_with_inspectable_attributes.collect do |attr| | |
...implementation | |
end | |
...return inspection string | |
end | |
def column_names_with_inspectable_attributes | |
column_names.concat(additional_inspectable_attributes) | |
end | |
def additional_inspectable_attributes | |
['foo', 'bar'] | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment