Sha256: 7ea43f52040ad777719a4cbca84b20881b970e5c5152f34ec3e62258e2378fee

Contents?: true

Size: 352 Bytes

Versions: 3

Compression:

Stored size: 352 Bytes

Contents

module Teacup
  class Limelight
    include StylesheetExtension
    attr :styles

    def initialize(&block)
      @styles = {}
      instance_exec(&block)
    end

    def method_missing(property, value=nil, &more_props)
      if more_props
        value = Limelight.new(&more_props).styles
      end
      styles[property] = value
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
teacup-3.0.1 lib/teacup/limelight.rb
teacup-3.0.0 lib/teacup/limelight.rb
teacup-2.3.0 lib/teacup/limelight.rb