Class: BitCore::ContentProviders::Null
- Inherits:
-
Object
- Object
- BitCore::ContentProviders::Null
- Defined in:
- app/models/bit_core/content_providers/null.rb
Overview
The default provider.
Instance Attribute Summary collapse
-
#position ⇒ Object
readonly
Returns the value of attribute position.
Instance Method Summary collapse
- #exists?(_position) ⇒ Boolean
-
#initialize(content_module, position) ⇒ Null
constructor
A new instance of Null.
- #render_current(_options) ⇒ Object
- #show_nav_link? ⇒ Boolean
Constructor Details
#initialize(content_module, position) ⇒ Null
Returns a new instance of Null.
8 9 10 11 |
# File 'app/models/bit_core/content_providers/null.rb', line 8 def initialize(content_module, position) @content_module = content_module @position = position end |
Instance Attribute Details
#position ⇒ Object (readonly)
Returns the value of attribute position.
6 7 8 |
# File 'app/models/bit_core/content_providers/null.rb', line 6 def position @position end |
Instance Method Details
#exists?(_position) ⇒ Boolean
22 23 24 |
# File 'app/models/bit_core/content_providers/null.rb', line 22 def exists?(_position) false end |
#render_current(_options) ⇒ Object
13 14 15 16 |
# File 'app/models/bit_core/content_providers/null.rb', line 13 def render_current() "Content Module #{@content_module.title}: Oops, did you expect a content provider here?" end |
#show_nav_link? ⇒ Boolean
18 19 20 |
# File 'app/models/bit_core/content_providers/null.rb', line 18 def show_nav_link? false end |