class Statusboard::DSL::TableDescription::TableCell

Public Class Methods

new(type, &block) click to toggle source
Calls superclass method Statusboard::DSL::DSLBase::new
# File lib/statusboard/dsl/dsl.rb, line 239
def initialize(type, &block)

        @type = :text
        @type = type unless type.nil?

        @noresize = false

        super &block
end

Public Instance Methods

construct() click to toggle source
# File lib/statusboard/dsl/dsl.rb, line 249
def construct
        {
                content: @content,
                type: @type,
                width: @width,
                percentage: @percentage,
                imageurl: @imageurl,
                noresize: @noresize
        }
end