Sha256: c45c847f705d5029d81877b8c9366e120812251b8fe73c4722b615f2d37dd329

Contents?: true

Size: 461 Bytes

Versions: 2

Compression:

Stored size: 461 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?
        true
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bit_player-0.2.0 app/models/bit_player/content_providers/null.rb
bit_player-0.1.4 app/models/bit_player/content_providers/null.rb