Class: Rubysmith::Builders::Console
- Inherits:
-
Object
- Object
- Rubysmith::Builders::Console
- Defined in:
- lib/rubysmith/builders/console.rb
Overview
Builds project skeleton console for object inspection and exploration.
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(configuration, builder: Builder) ⇒ Console
constructor
A new instance of Console.
Constructor Details
Class Method Details
.call ⇒ Object
11 |
# File 'lib/rubysmith/builders/console.rb', line 11 def self.call(...) = new(...).call |
Instance Method Details
#call ⇒ Object
18 19 20 21 22 23 24 25 26 |
# File 'lib/rubysmith/builders/console.rb', line 18 def call return configuration unless configuration.build_console builder.call(configuration.merge(template_path: "%project_name%/bin/console.erb")) .render .permit 0o755 configuration end |