Skip to content

Instantly share code, notes, and snippets.

@novito

novito/traits.rb Secret

Created April 25, 2015 18:34
Show Gist options
  • Save novito/6a9a73123ca3ea7e4de4 to your computer and use it in GitHub Desktop.
Save novito/6a9a73123ca3ea7e4de4 to your computer and use it in GitHub Desktop.
trait :red do
color_id Color::TYPES[:red]
end
trait :blue do
color_id Color::TYPES[:blue]
end
trait :green do
color_id Color::TYPES[:green]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment