Sha256: 4fc7cf883a082b754bb739c44021f43ffc1036bc2d5849955bf5d97904ab3153
Contents?: true
Size: 648 Bytes
Versions: 23
Compression:
Stored size: 648 Bytes
Contents
require "yaml" class Lono::Blueprint class Meta extend Memoist def initialize(blueprint) @blueprint = blueprint end def jadespec Lono::Finder::Blueprint.find(@blueprint) end memoize :jadespec def auto_camelize?(target_section) auto_camelize = jadespec.auto_camelize # auto_camelize.nil? for backward compatibility return true if auto_camelize.nil? || auto_camelize == true if auto_camelize == "except_resource" return target_section != "resource" end if auto_camelize.is_a?(Array) auto_camelize.include?(target_section) end end end end
Version data entries
23 entries across 23 versions & 1 rubygems