Sha256: 534b6dabb13af8797e4fd96dab3e23411c22b02cb4572f37d9d08002f1a4ac71
Contents?: true
Size: 398 Bytes
Versions: 11
Compression:
Stored size: 398 Bytes
Contents
class ServiceSkeleton class ConfigVariable attr_reader :name def initialize(name, **opts, &blk) @name = name @opts = opts @blk = blk end def method_name(svc_name) name.to_s.gsub(/\A#{Regexp.quote(svc_name)}_/i, '').downcase end def sensitive? !!@opts[:sensitive] end def value(raw_val) @blk.call(raw_val) end end end
Version data entries
11 entries across 11 versions & 1 rubygems