Sha256: b117419ce44dfc91f337952248423a2193dcff20c205c87af8beee305546d23f
Contents?: true
Size: 540 Bytes
Versions: 5
Compression:
Stored size: 540 Bytes
Contents
# frozen_string_literal: true class Tramway::Landing::BlockTypes::FeaturesDecorator < ::Tramway::ApplicationDecorator def icon; end def image; end def title; end def text; end def anchor; end def full_text; end def external_link; end def active_link if anchor.present? "##{anchor}" else if external_link.present? if external_link.match?(%r{^https?://}) external_link else "http://#{external_link}" end else '' end end end end
Version data entries
5 entries across 5 versions & 1 rubygems