Module: CouchVisible::Config

Included in:
CouchVisible
Defined in:
lib/couch_visible/config.rb

Instance Method Summary collapse

Instance Method Details

#hide_by_default!Object



19
20
21
# File 'lib/couch_visible/config.rb', line 19

def hide_by_default!
  @show_by_default = false
end

#hide_by_default?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/couch_visible/config.rb', line 15

def hide_by_default?
  !(@show_by_default ||= false)
end

#reset!Object



3
4
5
# File 'lib/couch_visible/config.rb', line 3

def reset!
  @show_by_default = false
end

#show_by_default!Object



11
12
13
# File 'lib/couch_visible/config.rb', line 11

def show_by_default!
  @show_by_default = true
end

#show_by_default?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/couch_visible/config.rb', line 7

def show_by_default?
  @show_by_default ||= false
end