Sha256: e73b0ad477b430ec7b91235928b74c853cd6329149bba2b957cb07112405b4a1
Contents?: true
Size: 604 Bytes
Versions: 4
Compression:
Stored size: 604 Bytes
Contents
# frozen_string_literal: true module ObjectInspector # ObjectInspector::Conversions defines conversion functions used by # ObjectInspector. module Conversions module_function # Convert the passed in value to an {ObjectInspector::Scope} object. # Just returns the pass in value if it already is an # {ObjectInspector::Scope} object. # # @return [ObjectInspector::Scope] def Scope(value) # rubocop:disable Naming/MethodName case value when ObjectInspector::Scope value else ObjectInspector::Scope.new(value) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems