class Net::ReadAdapter
Experimental RBS support (using type sampling data from the type_fusion
project).
# sig/net/protocol.rbs class Net::ReadAdapter def call_block: (String str) -> Integer end
:nodoc: internal use only
def <<(str)
def <<(str) call_block(str, &@block) if @block end
def call_block(str)
Experimental RBS support (using type sampling data from the type_fusion
project).
def call_block: (String str) -> Integer
This signature was generated using 1 sample from 1 application.
not Proc#call. You can see difference when using `break' in
This method is needed because @block must be called by yield,
def call_block(str) yield str end
def initialize(block)
def initialize(block) @block = block end
def inspect
def inspect "#<#{self.class}>" end