Sha256: edd61ba7abe11019f1760afd6c12c51314e12bcc464f373d599f4e7bd5b0dad4
Contents?: true
Size: 445 Bytes
Versions: 2
Compression:
Stored size: 445 Bytes
Contents
module Pageflow module React class WidgetType < Pageflow::WidgetType attr_reader :name, :role, :component_name def initialize(name, role, component_name) @name = name @role = role @component_name = component_name end def roles [role] end def render(template, _) template.render(File.join('pageflow', 'react', 'widget'), name: name) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pageflow-react-0.1.1 | lib/pageflow/react/widget_type.rb |
pageflow-react-0.1.0 | lib/pageflow/react/widget_type.rb |