class HtmlGrid::DateValue

Constants

LABEL

Public Instance Methods

to_html(context) click to toggle source
# File lib/htmlgrid/datevalue.rb, line 32
def to_html(context)
  date = @model.send(@name)
  if date.respond_to?(:strftime)
    date.strftime(@lookandfeel.lookup(:date_format))
  end
end