kgio RubyGem user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
From: Luca Molari <molari.luca@gmail.com>
To: kgio@librelist.org
Subject: ArgumentError initializing TCPSocket subclass
Date: Mon, 09 Dec 2013 17:58:32 +0100	[thread overview]
Message-ID: <1570952.v9Uvd79uXP@terzon> (raw)
In-Reply-To: <1570952.v9Uvd79uXP@terzon>

Hello,
I have the following code:

```
require 'kgio'

class KgTCPSocket < Kgio::TCPSocket
  def initialize(addr, port, option)
    super(addr, port)
  end
end

KgTCPSocket.new('127.0.0.1', 8080, true)
# => in `new': wrong number of arguments (3 for 2) (ArgumentError)
```

Could you please tell me what I am doing wrong?
Thank you.

-LM


       reply	other threads:[~2013-12-09 16:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-09 16:58 Luca Molari [this message]
2013-12-09 22:58 ` ArgumentError initializing TCPSocket subclass Eric Wong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://yhbt.net/kgio/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1570952.v9Uvd79uXP@terzon \
    --to=molari.luca@gmail.com \
    --cc=kgio@librelist.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhbt.net/kgio.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).