Module: Shoes::Background

Included in:
Flow, Stack, Widget
Defined in:
lib/shoes/background.rb

Class Method Summary collapse

Instance Method Summary collapse

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, options = {})
  self.background_color = color
end