package_name

package_name() Class Public methods

clear

clear() Instance Public methods def validate(cmd = Proc.new, args = nil) if cmd.kind_of?(ValidateCmd) configure('validate', cmd) elsif args configure('validate', [cmd, args]) else configure('validate', cmd) end end def invalid(cmd = Proc.new, args = nil) if cmd.kind_of?(ValidateCmd) configure('invalid', cmd) elsif args configure('invalid', [cmd, args]) else configure('invalid', cmd) end end ####################################

__destroy_hook__

__destroy_hook__() Instance Public methods

tty_output=

tty_output=( tty_output_state ) Instance Public methods Override the detected TTY output state (mostly for testing)

scan

scan() Instance Public methods Extract the file contents and attach them to the TopLevel as a comment

rest?

rest?() Instance Public methods Returns true iff there is more data in the string. See eos?. This method is obsolete; use eos? instead. s = StringScanner.new('test string') s.eos? # These two s.rest? # are opposites.

set_params

set_params() Instance Public methods

deltag

deltag(*tags) Instance Public methods Alias for: tag_delete

raw!

io.raw!(min: nil, time: nil) Instance Public methods Enables raw mode. If the terminal mode needs to be back, use io.raw { ⦠}. You must require 'io/console' to use this method.

recv

basicsocket.recv(maxlen) => mesgbasicsocket.recv(maxlen, flags) => mesg Instance Public methods Receives a message. maxlen is the maximum number of bytes to receive. flags should be a bitwise OR of Socket::MSG_* constants. UNIXSocket.pair {|s1, s2| s1.puts "Hello World" p s2.recv(4) #=> "Hell" p s2.recv(4, Socket::MSG_PEEK) #=> "o Wo" p s2.recv(4) #=> "o Wo" p s2.recv(10) #=> "rld\n" }