Sha256: 9d1e3eb69e7c88d47a93a9a14e870fd2281fb4d550f9302068912f83e3462d57

Contents?: true

Size: 515 Bytes

Versions: 1

Compression:

Stored size: 515 Bytes

Contents

<%- assert_locals service -%>
@configure ||= begin
  namespace = <%= service.namespace.split("::").inspect %>
  parent_config = while namespace.any?
                    parent_name = namespace.join "::"
                    parent_const = const_get parent_name
                    break parent_const.configure if parent_const&.respond_to? :configure
                    namespace.pop
                  end
  <%= service.client_name %>::Configuration.new parent_config
end
yield @configure if block_given?
@configure

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gapic-generator-cloud-0.1.0 templates/cloud/service/client/_self_configure.erb