Skip to content

Instantly share code, notes, and snippets.

@stuffandthings
Created May 24, 2016 21:08
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 stuffandthings/d2e5694d09a7a67bce71cac8fd7d123b to your computer and use it in GitHub Desktop.
Save stuffandthings/d2e5694d09a7a67bce71cac8fd7d123b to your computer and use it in GitHub Desktop.
def initialize
populate_applied_styles
end
def applied_styles
@applied_styles ||= {}
end
def populate_applied_styles
STYLES.each do |name|
applied_styles[name.first] = styles.add_style(name.last)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment