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.
64
65
66
|
# File 'lib/pageflow/widget_type.rb', line 64
def initialize(role)
@role = role
end
|
Instance Method Details
#name ⇒ Object
68
69
70
|
# File 'lib/pageflow/widget_type.rb', line 68
def name
'null'
end
|
#render ⇒ Object
76
77
78
|
# File 'lib/pageflow/widget_type.rb', line 76
def render(*)
''
end
|
#roles ⇒ Object
72
73
74
|
# File 'lib/pageflow/widget_type.rb', line 72
def roles
[@role]
end
|