Class: Parcels::FortitudeInlineParcel

Inherits:
FortitudeParcel show all
Defined in:
lib/parcels/fortitude_inline_parcel.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from FortitudeParcel

#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?

Constructor Details

This class inherits a constructor from Parcels::FortitudeParcel

Class Method Details

.logical_path_prefixObject



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_typeObject



16
17
18
# File 'lib/parcels/fortitude_inline_parcel.rb', line 16

def tag_type
  :inline
end

#tag_types_that_must_come_beforeObject



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