Sha256: 5818108a99b7b15774f33b791eafab1c9b6e1ca4eee0744b813ac6a6cc840d0f
Contents?: true
Size: 542 Bytes
Versions: 2
Compression:
Stored size: 542 Bytes
Contents
module Lookbook module Tags def self.process_tags(tag_objects, file: nil, eval_scope: nil) return [] if tag_objects.none? tag_objects.map do |tag_object| tag_config = Engine.tags.get_tag(tag_object.tag_name).to_h tag_opts = tag_config[:opts].to_h Lookbook::Tag.new(tag_object, tag_opts[:named_args], parser: tag_opts[:args_parser], **tag_opts.except(:named_args, :args_parser), file: file, eval_scope: eval_scope) end.compact end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lookbook-1.2.1 | lib/lookbook/tags.rb |
lookbook-1.2.0 | lib/lookbook/tags.rb |