Sha256: c49da6f227086144ba4f1e05d3308dc855061b0dafb23b7d8f6e7eaafbb7d60e

Contents?: true

Size: 515 Bytes

Versions: 11

Compression:

Stored size: 515 Bytes

Contents

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

11 entries across 11 versions & 1 rubygems

Version Path
bit_core-2.0.0.beta1 app/models/bit_core/content_providers/null.rb
bit_core-1.4.6 app/models/bit_core/content_providers/null.rb
bit_core-1.4.5 app/models/bit_core/content_providers/null.rb
bit_core-1.2.2 app/models/bit_core/content_providers/null.rb
bit_core-1.2.1 app/models/bit_core/content_providers/null.rb
bit_core-1.2.0 app/models/bit_core/content_providers/null.rb
bit_core-1.1.6 app/models/bit_core/content_providers/null.rb
bit_core-1.1.5 app/models/bit_core/content_providers/null.rb
bit_core-1.1.4 app/models/bit_core/content_providers/null.rb
bit_core-1.1.3 app/models/bit_core/content_providers/null.rb
bit_core-1.1.2 app/models/bit_core/content_providers/null.rb