# File mrbgems/mruby-socket/mrblib/socket.rb, line 586 def self.bool(family, level, optname, bool) self.new(family, level, optname, [(bool ? 1 : 0)].pack('i')) end
# File mrbgems/mruby-socket/mrblib/socket.rb, line 599 def bool @data.unpack('i')[0] != 0 end
# File mrbgems/mruby-socket/mrblib/socket.rb, line 603 def inspect "#<Socket::Option: family:#{@family} level:#{@level} optname:#{@optname} #{@data.inspect}>" end
# File mrbgems/mruby-socket/mrblib/socket.rb, line 607 def int @data.unpack('i')[0] end