Sha256: cb9b89b88b3a42e70620ae12a29f7fd183e4db874eecf62f46fc276a21d641e5
Contents?: true
Size: 498 Bytes
Versions: 2
Compression:
Stored size: 498 Bytes
Contents
# frozen_string_literal: true require_relative '../generator' module Dagger module Generate # Generate a value for a +string+ rule. # # _default.key: # - string: "format string" # - string: # - "format string" # - ... class String < Dagger::Generator def process(strings) enumerable(strings).each do |fmtstr| result = format_string(fmtstr) yield result unless result.nil? end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ruby-dagger-0.2.1 | lib/dagger/generator/string.rb |
ruby-dagger-0.2.0 | lib/dagger/generator/string.rb |