Module: Teacup::LayoutClass
- Defined in:
- lib/teacup/layout.rb
Overview
Adds the class ‘stylesheet` method to
Instance Method Summary collapse
-
#stylesheet(new_stylesheet = nil) ⇒ Object
Calling this method in the class body will assign a default stylesheet for all instances of your class.
Instance Method Details
#stylesheet(new_stylesheet = nil) ⇒ Object
Calling this method in the class body will assign a default stylesheet for all instances of your class
7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/teacup/layout.rb', line 7 def stylesheet(new_stylesheet=nil) if new_stylesheet.nil? if @stylesheet.is_a? Symbol @stylesheet = Teacup::Stylesheet[@stylesheet] end return @stylesheet end @stylesheet = new_stylesheet end |