Class Limelight::DSL::StylesBuilder
In: lib/limelight/dsl/styles_builder.rb
Parent: Object

The basis of the DSL for building Style objects.

Sample StyleBuilder DSL

 sandbox {
   width "100%"
   height "100%"
   vertical_alignment :top
 }

 sample {
   width 320
   height 320
   gradient :on
 }

 spinner {
   extends :sample
   background_color :green
   secondary_background_color :blue
   gradient_angle 0
   gradient_penetration 100
 }

This exmple builds three styles: sandbox, sample, spinner. Within each style block, the individual attributes of the style may be set.

See Limelight::Styles

Methods

new  

Attributes

__extendable_styles  [R] 
__styles  [R] 

Public Class methods

[Source]

    # File lib/limelight/dsl/styles_builder.rb, line 67
67:       def initialize(extendable_styles = nil)
68:         @__extendable_styles = extendable_styles || {}
69:         @__styles = {}
70:       end

[Validate]