-
-
Save stuffandthings/d2e5694d09a7a67bce71cac8fd7d123b 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 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