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