class HtmlGrid::BooleanValue

Constants

LABEL

Public Instance Methods

init() click to toggle source
# File lib/htmlgrid/booleanvalue.rb, line 32
def init
  bool = if @model.respond_to?(@name) && @model.send(@name)
    :true
  else
    :false
  end
  @value = @lookandfeel.lookup(bool)
end