Sha256: d94ac6f1b6092f288bcc6a76dcb3cb6eea06c45202a8a1e4788d339261237d7d

Contents?: true

Size: 515 Bytes

Versions: 5

Compression:

Stored size: 515 Bytes

Contents

module BitPlayer
  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

5 entries across 5 versions & 1 rubygems

Version Path
bit_player-0.3.0 app/models/bit_player/content_providers/null.rb
bit_player-0.2.5 app/models/bit_player/content_providers/null.rb
bit_player-0.2.3 app/models/bit_player/content_providers/null.rb
bit_player-0.2.2 app/models/bit_player/content_providers/null.rb
bit_player-0.2.1 app/models/bit_player/content_providers/null.rb