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.



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

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

Returns:

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

#show_nav_link?Boolean

Returns:

  • (Boolean)


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

def show_nav_link?
  false
end