Class: Pageflow::FileBackgroundImagesHelper::Rules Private
- Inherits:
-
Object
- Object
- Pageflow::FileBackgroundImagesHelper::Rules
- Defined in:
- app/helpers/pageflow/file_background_images_helper.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
-
#initialize(file_types, entry, breakpoint_name) ⇒ Rules
constructor
private
A new instance of Rules.
- #to_a ⇒ Object private
Constructor Details
#initialize(file_types, entry, breakpoint_name) ⇒ Rules
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Rules.
17 18 19 20 21 |
# File 'app/helpers/pageflow/file_background_images_helper.rb', line 17 def initialize(file_types, entry, breakpoint_name) @file_types = file_types @entry = entry @breakpoint_name = breakpoint_name end |
Instance Method Details
#to_a ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
23 24 25 26 27 |
# File 'app/helpers/pageflow/file_background_images_helper.rb', line 23 def to_a file_types.flat_map do |file_type| rules_for_file_type(file_type) end end |