# frozen_string_literal: true require 'liquid' require_relative '../code_generator/resources_status' module KCommercial module Resources class CodeModel attr_accessor :component_name, :super_module_name, :keys, :resources_status def oc_class_name name = component_name name = "#{component_name}Resources" unless component_name.end_with? "Resources" "#{name}Internal" end def super_class_name name = "#{super_module_name}Internal" if super_module_name.to_s == "KCSemanticResources" name = "KCResources" end name end def component_header_name name = "#{component_name}Auto" name end def bundle_name if component_name.end_with? "Resources" return "Auto#{component_name}" else "Auto#{component_name}Resources" end end def key_to_function_name(key) key = key.camelize(false) if key.length > 0 key[0] = key[0].downcase end key end def get_binding binding end end end end