Class: Terrazzo::Generators::EjectGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Terrazzo::Generators::EjectGenerator
- Includes:
- Views::GeneratedDefaultsHelper
- Defined in:
- lib/generators/terrazzo/eject/eject_generator.rb
Constant Summary
Constants included from Views::GeneratedDefaultsHelper
Views::GeneratedDefaultsHelper::PAGE_COMPONENTS
Instance Method Summary collapse
Instance Method Details
#eject ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/generators/terrazzo/eject/eject_generator.rb', line 17 def eject case category when "fields" eject_field when "components" eject_component when "ui" eject_ui when "pages" eject_page when "navigation" raise_unknown_target unless target == "navigation" else raise_unknown_target end end |