Class: TableInspector::PresenterOption
- Inherits:
-
Object
- Object
- TableInspector::PresenterOption
- Defined in:
- lib/table_inspector/presenter_option.rb
Instance Attribute Summary collapse
-
#colorize ⇒ Object
Returns the value of attribute colorize.
-
#comment_only ⇒ Object
Returns the value of attribute comment_only.
-
#sql_type ⇒ Object
Returns the value of attribute sql_type.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ PresenterOption
constructor
A new instance of PresenterOption.
Constructor Details
#initialize(options = {}) ⇒ PresenterOption
Returns a new instance of PresenterOption.
6 7 8 9 10 |
# File 'lib/table_inspector/presenter_option.rb', line 6 def initialize( = {}) @sql_type = .fetch(:sql_type, false) @comment_only = .fetch(:comment_only, false) @colorize = .fetch(:colorize, false) end |
Instance Attribute Details
#colorize ⇒ Object
Returns the value of attribute colorize.
4 5 6 |
# File 'lib/table_inspector/presenter_option.rb', line 4 def colorize @colorize end |
#comment_only ⇒ Object
Returns the value of attribute comment_only.
4 5 6 |
# File 'lib/table_inspector/presenter_option.rb', line 4 def comment_only @comment_only end |
#sql_type ⇒ Object
Returns the value of attribute sql_type.
4 5 6 |
# File 'lib/table_inspector/presenter_option.rb', line 4 def sql_type @sql_type end |