Class: Parcels::FortitudeInlineParcel
Class Method Summary
collapse
Instance Method Summary
collapse
#add_to_sprockets_context!, #all_tag_types, #included_in_any_set?, #initialize, #inspect, is_fortitude_logical_path?, logical_path_prefix_base, #tag, #tags_that_must_come_before, #to_s, #usable?
Class Method Details
.logical_path_prefix ⇒ Object
5
6
7
|
# File 'lib/parcels/fortitude_inline_parcel.rb', line 5
def self.logical_path_prefix
"#{logical_path_prefix_base}inline"
end
|
Instance Method Details
#tag_type ⇒ Object
16
17
18
|
# File 'lib/parcels/fortitude_inline_parcel.rb', line 16
def tag_type
:inline
end
|
#tag_types_that_must_come_before ⇒ Object
20
21
22
|
# File 'lib/parcels/fortitude_inline_parcel.rb', line 20
def tag_types_that_must_come_before
[ :alongside ]
end
|
#to_css(sprockets_context) ⇒ Object
9
10
11
12
13
14
|
# File 'lib/parcels/fortitude_inline_parcel.rb', line 9
def to_css(sprockets_context)
if widget_class.respond_to?(:_parcels_widget_class_inline_css) &&
(!(css = widget_class._parcels_widget_class_inline_css(widget_tree.parcels_environment, sprockets_context)).blank?)
css
end
end
|