Class: Dsu::Views::Configuration::Show
- Inherits:
-
Object
- Object
- Dsu::Views::Configuration::Show
- Includes:
- Support::ColorThemable
- Defined in:
- lib/dsu/views/configuration/show.rb
Instance Method Summary collapse
- #call ⇒ Object (also: #render)
-
#initialize(config:, options: {}) ⇒ Show
constructor
A new instance of Show.
Methods included from Support::ColorThemable
apply_theme, #prompt_with_options
Constructor Details
#initialize(config:, options: {}) ⇒ Show
Returns a new instance of Show.
14 15 16 17 18 19 20 21 22 |
# File 'lib/dsu/views/configuration/show.rb', line 14 def initialize(config:, options: {}) raise ArgumentError, 'config is nil' if config.nil? raise ArgumentError, 'config is the wrong object type' unless config.is_a?(Models::Configuration) raise ArgumentError, 'options is nil' if .nil? raise ArgumentError, 'options is the wrong object type' unless .is_a?(Hash) @config = config @options = || {} end |
Instance Method Details
#call ⇒ Object Also known as: render
24 25 26 |
# File 'lib/dsu/views/configuration/show.rb', line 24 def call render! end |