lib/generators/templates/component.rb.erb in amber_component-0.0.4 vs lib/generators/templates/component.rb.erb in amber_component-0.0.5

- old
+ new

@@ -1,9 +1,11 @@ # frozen_string_literal: true class <%= class_name %> < ::ApplicationComponent - # Your code goes here + # Props that your component accepts + prop :description, default: -> { 'Default Description' } after_initialize do + # some initialization @time = ::Time.now end end