Files
news.gitea.happylizard.me/bin/gems/pry-0.15.2/lib/pry/config/value.rb
T
pizza2d1 4cee170d66
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 9s
Add bin and edit workflow
2026-09-16 13:11:16 -06:00

25 lines
503 B
Ruby

# frozen_string_literal: true
class Pry
class Config
# Value holds a value for the given attribute and decides how it should
# be read. Procs get called, other values are returned as is.
#
# @since v0.13.0
# @api private
class Value
def initialize(value)
@value = value
end
def call
unless [Config::MemoizedValue, Config::LazyValue].include?(@value.class)
return @value
end
@value.call
end
end
end
end