Module: Loba::Internal::Value Private
- Defined in:
- lib/loba/internal/value.rb,
lib/loba/internal/value/value_helper.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Internal module for examining a value in support of Loba.value
Defined Under Namespace
Modules: ValueHelper
Class Method Summary collapse
-
.phrases(argument:, label: nil, inspect: true, depth_offset: 0) ⇒ Hash
private
Retrieve a value used in code.
Class Method Details
.phrases(argument:, label: nil, inspect: true, depth_offset: 0) ⇒ Hash
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Retrieve a value used in code.
29 30 31 32 33 34 35 36 37 |
# File 'lib/loba/internal/value.rb', line 29 def phrases(argument:, label: nil, inspect: true, depth_offset: 0) depth = depth_offset.nil? ? 0 : depth_offset.to_i { tag: ValueHelper.tag(depth: depth + 1), line: ValueHelper.line(depth: depth + 1), value: ValueHelper.value(argument: argument, inspect: inspect, depth: depth + 1), label: ValueHelper.label(argument: argument, explicit_label: label) } end |