Sha256: 4c825cffcb2aeb46bf5461ecf5caaa2f8e689e1c4c65acae9284e2505ae4af27
Contents?: true
Size: 335 Bytes
Versions: 2
Compression:
Stored size: 335 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) value = value.to_s value = "\"#{value}\"" if value.include?(' ') "#{option_name(name)}=#{value}" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rails_app_generator-0.0.5 | lib/rails_app_generator/options/map_option_string.rb |
rails_app_generator-0.0.4 | lib/rails_app_generator/options/map_option_string.rb |