Class: Pageflow::WidgetType::Null
Instance Method Summary
collapse
#enabled_in_editor?, #enabled_in_preview?, #insert_point, #render_head_fragment, #render_head_fragment_with_configuration, #render_with_configuration, #translation_key
Constructor Details
#initialize(role) ⇒ Null
Returns a new instance of Null.
61
62
63
|
# File 'lib/pageflow/widget_type.rb', line 61
def initialize(role)
@role = role
end
|
Instance Method Details
#name ⇒ Object
65
66
67
|
# File 'lib/pageflow/widget_type.rb', line 65
def name
'null'
end
|
#render ⇒ Object
73
74
75
|
# File 'lib/pageflow/widget_type.rb', line 73
def render(*)
''
end
|
#roles ⇒ Object
69
70
71
|
# File 'lib/pageflow/widget_type.rb', line 69
def roles
[@role]
end
|