class Ethon::Easy::DebugInfo
Experimental RBS support (using type sampling data from the type_fusion project).
# sig/ethon/easy/debug_info.rbs class Ethon::Easy::DebugInfo def initialize: () -> void end
@api private
which is only saved when verbose is set to true.
This class is used to store and retreive debug information,
def add(type, message)
def add(type, message) @messages << Message.new(type, message) end
def initialize
Experimental RBS support (using type sampling data from the type_fusion project).
def initialize: () -> void
This signature was generated using 83 samples from 3 applications.
def initialize @messages = [] end
def messages_for(type)
def messages_for(type) @messages.select {|m| m.type == type }.map(&:message) end
def to_a
def to_a @messages.map(&:message) end
def to_h
def to_h Hash[MESSAGE_TYPES.map {|k| [k, send(k)] }] end