Sha256: 0520d721d9e629e668716a939dae53093d94af94d7696dadb62816978cba1996
Contents?: true
Size: 630 Bytes
Versions: 15
Compression:
Stored size: 630 Bytes
Contents
class Pry # The Pry config. # @api public class Config < Pry::BasicObject # Wraps a block so it can have a name. # # @example # proc1 = proc {} # proc2 = Pry::Config::Lazy.new(&proc {}) # # proc1.is_a?(Pry::Config::Lazy) # #=> false # proc2.is_a?(Pry::Config::Lazy) # #=> true # # @api private # @since v0.12.0 class Lazy def initialize(&block) @block = block end # @return [Object] def call @block.call end end include Behavior def self.shortcuts Convenience::SHORTCUTS end end end
Version data entries
15 entries across 15 versions & 7 rubygems