Sha256: c559ce54a28eeed26f11fbe9b93a076e2f2feba461a727407acd40f108cde74c
Contents?: true
Size: 600 Bytes
Versions: 2
Compression:
Stored size: 600 Bytes
Contents
# frozen_string_literal: true # ObjectInspector::Conversions defines conversion functions used by # ObjectInspector. module ObjectInspector::Conversions module_function # Convert the passed in value to an {ObjectInspector::Scope} object. # Just returns the passed in value if it already is an # {ObjectInspector::Scope} object. # # @return [ObjectInspector::Scope] # # :reek:UncommunicativeMethodName def Scope(value) # rubocop:disable Naming/MethodName case value when ObjectInspector::Scope value else ObjectInspector::Scope.new(value) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
object_inspector-0.7.0 | lib/object_inspector/conversions.rb |
object_inspector-0.6.3 | lib/object_inspector/conversions.rb |