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.
7 8 9 10 |
# File 'app/models/bit_core/content_providers/null.rb', line 7 def initialize(content_module, position) @content_module = content_module @position = position end |
Instance Attribute Details
#position ⇒ Object (readonly)
Returns the value of attribute position.
5 6 7 |
# File 'app/models/bit_core/content_providers/null.rb', line 5 def position @position end |
Instance Method Details
#exists?(_position) ⇒ Boolean
21 22 23 |
# File 'app/models/bit_core/content_providers/null.rb', line 21 def exists?(_position) false end |
#render_current(_options) ⇒ Object
12 13 14 15 |
# File 'app/models/bit_core/content_providers/null.rb', line 12 def render_current() "Content Module #{ @content_module.title }: Oops, did you expect a content provider here?" end |
#show_nav_link? ⇒ Boolean
17 18 19 |
# File 'app/models/bit_core/content_providers/null.rb', line 17 def show_nav_link? false end |