Sha256: 8c85e5fc0f3cd0c5d20c36579f79b039da5d24243a34081038dabc3f8cd2ea90
Contents?: true
Size: 563 Bytes
Versions: 3
Compression:
Stored size: 563 Bytes
Contents
# frozen_string_literal: true require 'active_support/core_ext/object/blank' require 'middleman-robots/generators/block' module Middleman module Robots module Generators # Blocks # # Collection of ::Middleman::Robots::Generators::Block class Blocks def initialize(rules) @rules = rules @groups = @rules.map { |rule| Block.new(rule) } if @rules.present? end def text return nil if @groups.nil? @groups.map(&:text).join "\n\n" end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems