Sha256: 9a367e8cf0f75efbe09570d2bc88a9aa11794c590deba15d72012ec6d6d4b588

Contents?: true

Size: 394 Bytes

Versions: 4

Compression:

Stored size: 394 Bytes

Contents

# app/hyperstack/hyper_component.rb
class <%= @component_base_class %>
  # All component classes must include Hyperstack::Component
  include Hyperstack::Component
  # The Observable module adds state handling
  include Hyperstack::State::Observable
  # The following turns on the new style param accessor
  # i.e. param :foo is accessed by the foo method
  param_accessor_style :accessors
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rails-hyperstack-1.0.alpha1.8 lib/generators/hyper/templates/hyper_component_template.rb
rails-hyperstack-1.0.alpha1.7 lib/generators/hyper/templates/hyper_component_template.rb
rails-hyperstack-1.0.alpha1.6 lib/generators/hyper/templates/hyper_component_template.rb
rails-hyperstack-1.0.alpha1.5 lib/generators/hyper/templates/hyper_component_template.rb