Sha256: af26afc04fb89e2ffd03c8d1da15207830809eca2aac1e2439f90a9be94929b4
Contents?: true
Size: 516 Bytes
Versions: 17
Compression:
Stored size: 516 Bytes
Contents
module Relish module ResourceMethods def self.included(command_class) command_class.extend ClassMethods end module ClassMethods def resource_path(path) define_method :resource_path do |project| "projects/#{escape(project)}/#{path}" end end end def resource_path_for_no_option resource_path(@param || project) end def resource_path_for_option resource_path(@param.extract_project_handle || project) end end end
Version data entries
17 entries across 17 versions & 1 rubygems