Class: Embryo::DefaultView
- Inherits:
-
Object
- Object
- Embryo::DefaultView
- Defined in:
- lib/embryo/default_view.rb
Instance Method Summary collapse
-
#initialize(filesystem) ⇒ DefaultView
constructor
A new instance of DefaultView.
- #install ⇒ Object
Constructor Details
#initialize(filesystem) ⇒ DefaultView
Returns a new instance of DefaultView.
3 4 5 |
# File 'lib/embryo/default_view.rb', line 3 def initialize(filesystem) @filesystem = filesystem end |
Instance Method Details
#install ⇒ Object
7 8 9 10 11 12 |
# File 'lib/embryo/default_view.rb', line 7 def install @filesystem.write "config/routes.rb", routes_data @filesystem.write "app/controllers/dashboard_controller.rb", controller_data @filesystem.write "spec/controllers/dashboard_controller_spec.rb", controller_spec_data @filesystem.write "spec/features/dashboard_spec.rb", feature_spec_data end |