Class: ButterCMS::Parsers::TagsObjects
- Inherits:
-
Object
- Object
- ButterCMS::Parsers::TagsObjects
- Defined in:
- lib/butter_cms/parsers/tags_objects.rb
Class Method Summary collapse
-
.call(tags) ⇒ Array<ButterCMS::Tag>
Returns array of tag objects created from given array of attributes.
Class Method Details
.call(tags) ⇒ Array<ButterCMS::Tag>
Returns array of tag objects created from given array of attributes
7 8 9 10 11 |
# File 'lib/butter_cms/parsers/tags_objects.rb', line 7 def self.call() .map do |tag_attributes| ::ButterCMS::Tag.new(tag_attributes) end end |