module Teacup::LayoutClass
Adds the class `stylesheet` method to
Public Instance Methods
stylesheet(new_stylesheet=nil)
click to toggle source
Calling this method in the class body will assign a default stylesheet for all instances of your class
# 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