Sha256: 125224babeb20fc3fc8c4372e0c58936e49b68e5b806e802b8ce6f2de3f9606e
Contents?: true
Size: 630 Bytes
Versions: 16
Compression:
Stored size: 630 Bytes
Contents
module DmCore module ParamsHelper # given a "width" parameter, make it into a valid css width value #------------------------------------------------------------------------------ def css_style_width(width = '') width = width.to_s.as_css_size return width.blank? ? '' : "width:#{width};" end # given a "height" parameter, make it into a valid css height value #------------------------------------------------------------------------------ def css_style_height(height = '') height = height.to_s.as_css_size return height.blank? ? '' : "height:#{height};" end end end
Version data entries
16 entries across 16 versions & 1 rubygems