templates/basic_class_template.erb in scarpe-0.2.2 vs templates/basic_class_template.erb in scarpe-0.3.0
- old
+ new
@@ -1,21 +1,21 @@
# class_template.erb
# frozen_string_literal: true
-class Scarpe
- class <%= argument %> < Shoes::Widget
+module Shoes
+ class <%= argument %> < Shoes::Drawable
- # Display Properties
- # These properties determine the visual characteristics of the widget
+ # Shoes styles
+ # These properties determine the visual characteristics of the drawable
# Customize them according to your requirements
- # Example display properties:
- # :background_color - Sets the background color of the widget (<%= argument %>)
- # :width - Specifies the width of the widget(<%= argument %>)
- # :height - Specifies the height of the widget(<%= argument %>)
+ # Example Shoes styles:
+ # :background_color - Sets the background color of the drawable (<%= argument %>)
+ # :width - Specifies the width of the drawable(<%= argument %>)
+ # :height - Specifies the height of the drawable(<%= argument %>)
- display_properties <%= display_properties %>
+ shoes_styles <%= shoes_styles %>
def initialize
super
# Event Handlers
@@ -24,15 +24,14 @@
# Example event handler:
# bind_self_event("dummy") do
# # Event handling code goes here
# end
-
- # This method uses the DisplayService to create a visual representation of the widget
- # It generates a display widget based on the specified display properties
- create_display_widget
+ # This method uses the DisplayService to create a visual representation of the drawable
+ # It generates a display drawable based on the specified Shoes styles
+ create_display_drawable
end
- # other methods
+ # other methods
end
end