Sha256: 507a4e4c3219581dbe801f94d6cca8f1ff61ec758e0c9db8a40dc4acb2597929
Contents?: true
Size: 400 Bytes
Versions: 44
Compression:
Stored size: 400 Bytes
Contents
module CfnDsl ## # iterates through the the valid case-insensitive names # for "name". def self.methodNames(name, &block) if block then name_str = name.to_s yield name_str.to_sym n = name_str.dup n[0] = n[0].swapcase yield n.to_sym else result = [name.dup,name.dup] result[1][0] = result[1][0].swapcase return result end end end
Version data entries
44 entries across 44 versions & 1 rubygems