Sha256: ed3e5d18a52234885374f98d393c2c822ba3f8284cc52f47335677f2dd54cb57
Contents?: true
Size: 472 Bytes
Versions: 1
Compression:
Stored size: 472 Bytes
Contents
module TokyoMetro::Factory::Decorate::AppSubDecorator::InDocument::ColorInfo # @!group Sub public methods def render_color_info( color = nil ) color ||= object.color h.render inline: <<-HAML , type: :haml , locals: { color: color } %div{ class: :color_info } %p{ class: [ :web_color , :text_en ] }< = color - if color.present? %p{ class: [ :rgb_color , :text_en ] }< = color.to_rgb_color_in_parentheses HAML end # @!endgroup end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tokyo_metro-0.10.1 | lib/tokyo_metro/factory/decorate/app_sub_decorator/in_document/color_info.rb |