Sha256: a1f4c16cc74757d2531842b5ced17a17e16ea0ef1605c6d9d651d47305fcf47d
Contents?: true
Size: 382 Bytes
Versions: 90
Compression:
Stored size: 382 Bytes
Contents
# frozen_string_literal: true module RailsAppGenerator # Simple pass through mapper for options that do not yet have a mapper defined class MapOptionString < BaseMapOption def map(name, value) return '' if value.nil? || value.empty? value = value.to_s value = "\"#{value}\"" if value.include?(' ') "#{option_name(name)}=#{value}" end end end
Version data entries
90 entries across 90 versions & 1 rubygems