Class: BitCore::ContentProviders::Null

Inherits:
Object
  • Object
show all
Defined in:
app/models/bit_core/content_providers/null.rb

Overview

The default provider.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#positionObject (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

Returns:

  • (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(_options)
  "Content Module #{@content_module.title}: Oops, did you expect a
  content provider here?"
end

#show_nav_link?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'app/models/bit_core/content_providers/null.rb', line 18

def show_nav_link?
  false
end