Sha256: b73466ace5663955faae79608d2bde57db87ada545c93026168d30c20369237e

Contents?: true

Size: 543 Bytes

Versions: 2

Compression:

Stored size: 543 Bytes

Contents

# frozen_string_literal: true
module BitCore
  module ContentProviders
    # The default provider.
    class Null
      attr_reader :position

      def initialize(content_module, position)
        @content_module = content_module
        @position = position
      end

      def render_current(_options)
        "Content Module #{@content_module.title}: Oops, did you expect a
        content provider here?"
      end

      def show_nav_link?
        false
      end

      def exists?(_position)
        false
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bit_core-1.4.7 app/models/bit_core/content_providers/null.rb
bit_core-2.0.0.beta2 app/models/bit_core/content_providers/null.rb