Class: Groonga::DatabaseInspector::Options

Inherits:
Object
  • Object
show all
Defined in:
lib/groonga/database-inspector.rb

Overview

It is a class that keeps options for Groonga::DatabaseInspector.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeOptions

Returns a new instance of Options



49
50
51
52
# File 'lib/groonga/database-inspector.rb', line 49

def initialize
  @show_tables = true
  @show_columns = true
end

Instance Attribute Details

#show_columns=(value) ⇒ Boolean (writeonly)

Returns (true) Shows information about columns if true, doesn’t show it otherwise. If #show_tables? is false, information about columns isn’t always shown.

Returns:

  • (Boolean)

    (true) Shows information about columns if true, doesn’t show it otherwise. If #show_tables? is false, information about columns isn’t always shown.



48
49
50
# File 'lib/groonga/database-inspector.rb', line 48

def show_columns=(value)
  @show_columns = value
end

#show_tables=(value) ⇒ Boolean (writeonly)

Returns (true) Shows information about tables if true, doesn’t show it otherwise.

Returns:

  • (Boolean)

    (true) Shows information about tables if true, doesn’t show it otherwise.



43
44
45
# File 'lib/groonga/database-inspector.rb', line 43

def show_tables=(value)
  @show_tables = value
end

Instance Method Details

#show_columns?Boolean

Returns (true) Shows information about columns if true, doesn’t show it otherwise. If #show_tables? is false, information about columns isn’t always shown.

Returns:

  • (Boolean)

    (true) Shows information about columns if true, doesn’t show it otherwise. If #show_tables? is false, information about columns isn’t always shown.



60
61
62
# File 'lib/groonga/database-inspector.rb', line 60

def show_columns?
  @show_columns
end

#show_tables?Boolean

Returns (true) Shows information about tables if true, doesn’t show it otherwise.

Returns:

  • (Boolean)

    (true) Shows information about tables if true, doesn’t show it otherwise.



55
56
57
# File 'lib/groonga/database-inspector.rb', line 55

def show_tables?
  @show_tables
end