class Pageflow::React::WidgetType

Attributes

component_name[R]
name[R]
role[R]

Public Class Methods

new(name, role, component_name) click to toggle source
# File lib/pageflow/react/widget_type.rb, line 6
def initialize(name, role, component_name)
  @name = name
  @role = role
  @component_name = component_name
end

Public Instance Methods

render(template, _) click to toggle source
# File lib/pageflow/react/widget_type.rb, line 16
def render(template, _)
  template.render(File.join('pageflow', 'react', 'widget'), name: name)
end
roles() click to toggle source
# File lib/pageflow/react/widget_type.rb, line 12
def roles
  [role]
end