Class: Groonga::DatabaseInspector::Options
- Inherits:
-
Object
- Object
- Groonga::DatabaseInspector::Options
- Defined in:
- lib/groonga/database-inspector.rb
Overview
It is a class that keeps options for Groonga::DatabaseInspector.
Instance Attribute Summary collapse
-
#show_columns ⇒ Boolean
writeonly
(true) Shows information about columns if true, doesn’t show it otherwise.
-
#show_tables ⇒ Boolean
writeonly
(true) Shows information about tables if true, doesn’t show it otherwise.
Instance Method Summary collapse
-
#initialize ⇒ Options
constructor
A new instance of Options.
-
#show_columns? ⇒ Boolean
(true) Shows information about columns if true, doesn’t show it otherwise.
-
#show_tables? ⇒ Boolean
(true) Shows information about tables if true, doesn’t show it otherwise.
Constructor Details
#initialize ⇒ Options
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.
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.
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.
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.
55 56 57 |
# File 'lib/groonga/database-inspector.rb', line 55 def show_tables? @show_tables end |