Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save theotherdon/e8795b210b1e0fad1d489c3f642ac1e3 to your computer and use it in GitHub Desktop.
Save theotherdon/e8795b210b1e0fad1d489c3f642ac1e3 to your computer and use it in GitHub Desktop.
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