Module: ObjectInspector::Conversions
- Defined in:
- lib/object_inspector/conversions.rb
Overview
Defines general conversion functions used by ObjectInspector.
Class Method Summary collapse
-
.Scope(value) ⇒ ObjectInspector::Scope
Convert the passed in value to an Scope object.
Class Method Details
.Scope(value) ⇒ ObjectInspector::Scope
23 24 25 26 27 28 29 30 |
# File 'lib/object_inspector/conversions.rb', line 23 def Scope(value) # rubocop:disable Naming/MethodName case value when ObjectInspector::Scope value else ObjectInspector::Scope.new(value) end end |