Class: Parcels::FortitudeAlongsideParcel
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
Class Method Details
.logical_path_prefix ⇒ Object
7
8
9
|
# File 'lib/parcels/fortitude_alongside_parcel.rb', line 7
def self.logical_path_prefix
"#{logical_path_prefix_base}alongside"
end
|
Instance Method Details
#tag_type ⇒ Object
22
23
24
|
# File 'lib/parcels/fortitude_alongside_parcel.rb', line 22
def tag_type
:alongside
end
|
#tag_types_that_must_come_before ⇒ Object
18
19
20
|
# File 'lib/parcels/fortitude_alongside_parcel.rb', line 18
def tag_types_that_must_come_before
[ ]
end
|
#to_css(sprockets_context) ⇒ Object
11
12
13
14
15
16
|
# File 'lib/parcels/fortitude_alongside_parcel.rb', line 11
def to_css(sprockets_context)
if widget_class.respond_to?(:_parcels_widget_class_alongside_css) &&
(!(css = widget_class._parcels_widget_class_alongside_css(widget_tree.parcels_environment, sprockets_context)).blank?)
css
end
end
|
#usable? ⇒ Boolean
26
27
28
|
# File 'lib/parcels/fortitude_alongside_parcel.rb', line 26
def usable?
super && widget_class_full_path
end
|