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

Version Path
tramway-landing-3.3.0.11 app/decorators/tramway/landing/block_types/features_decorator.rb
tramway-landing-3.3.0.10 app/decorators/tramway/landing/block_types/features_decorator.rb
tramway-landing-3.3.0.9 app/decorators/tramway/landing/block_types/features_decorator.rb
tramway-landing-3.3.0.8 app/decorators/tramway/landing/block_types/features_decorator.rb
tramway-landing-3.3.0.7 app/decorators/tramway/landing/block_types/features_decorator.rb