Module: Shoes::Background
Class Method Summary collapse
Instance Method Summary collapse
-
#background(color, options = {}) ⇒ Object
NOTE: this needs to be passed through in order for the styling to work.
Class Method Details
.included(includer) ⇒ Object
5 6 7 |
# File 'lib/shoes/background.rb', line 5 def self.included(includer) includer.shoes_style(:background_color) end |
Instance Method Details
#background(color, options = {}) ⇒ Object
NOTE: this needs to be passed through in order for the styling to work
10 11 12 |
# File 'lib/shoes/background.rb', line 10 def background(color, = {}) self.background_color = color end |