Sha256: 46e8308f187ea2d67c43d3a9d38da41c89a4f4010a5e809ba9b43a5afdd2d44b

Contents?: true

Size: 546 Bytes

Versions: 80

Compression:

Stored size: 546 Bytes

Contents

# frozen_string_literal: true

class Tramway::Landing::BlockTypes::FeaturesDecorator < ::Tramway::Core::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

80 entries across 80 versions & 1 rubygems

Version Path
tramway-landing-3.0.0.1 app/decorators/tramway/landing/block_types/features_decorator.rb
tramway-landing-3.0 app/decorators/tramway/landing/block_types/features_decorator.rb
tramway-landing-2.2.3.1 app/decorators/tramway/landing/block_types/features_decorator.rb
tramway-landing-2.2.3 app/decorators/tramway/landing/block_types/features_decorator.rb
tramway-landing-2.2.2.1 app/decorators/tramway/landing/block_types/features_decorator.rb
tramway-landing-2.2.2 app/decorators/tramway/landing/block_types/features_decorator.rb
tramway-landing-2.2.1 app/decorators/tramway/landing/block_types/features_decorator.rb
tramway-landing-2.2.0.2 app/decorators/tramway/landing/block_types/features_decorator.rb
tramway-landing-2.2.0.1 app/decorators/tramway/landing/block_types/features_decorator.rb
tramway-landing-2.2 app/decorators/tramway/landing/block_types/features_decorator.rb
tramway-landing-2.1.0.2 app/decorators/tramway/landing/block_types/features_decorator.rb
tramway-landing-2.1.0.1 app/decorators/tramway/landing/block_types/features_decorator.rb
tramway-landing-2.1 app/decorators/tramway/landing/block_types/features_decorator.rb
tramway-landing-2.0.1.6 app/decorators/tramway/landing/block_types/features_decorator.rb
tramway-landing-2.0.1.5 app/decorators/tramway/landing/block_types/features_decorator.rb
tramway-landing-2.0.1.4 app/decorators/tramway/landing/block_types/features_decorator.rb
tramway-landing-2.0.1.3 app/decorators/tramway/landing/block_types/features_decorator.rb
tramway-landing-2.0.1.2 app/decorators/tramway/landing/block_types/features_decorator.rb
tramway-landing-2.0.1.1 app/decorators/tramway/landing/block_types/features_decorator.rb
tramway-landing-2.0.1 app/decorators/tramway/landing/block_types/features_decorator.rb