Professional Web Applications Themes

[ANN] rbbr-0.3.1 - Ruby

On Mon, Aug 11, 2003 at 10:10:41PM +0900, Masao Mutoh wrote: > Hi, > > rbbr-0.3.1 is now available. > > rbbr-0.3.0 supported ruby-1.8.x only. > rbbr-0.3.1 also supports ruby-1.6.x. Yes, but does it support rbbr duck typing? :-) <duck avoid="flying objects"/>...

  1. #1

    Default Re: [ANN] rbbr-0.3.1

    On Mon, Aug 11, 2003 at 10:10:41PM +0900, Masao Mutoh wrote:
    > Hi,
    >
    > rbbr-0.3.1 is now available.
    >
    > rbbr-0.3.0 supported ruby-1.8.x only.
    > rbbr-0.3.1 also supports ruby-1.6.x.
    Yes, but does it support rbbr duck typing? :-)

    <duck avoid="flying objects"/>

    Brian Candler Guest

  2. #2

    Default Re: [ANN] rbbr-0.3.1

    Hi,

    On Mon, 11 Aug 2003 22:48:41 +0900
    james_b <james_bneurogami.com> wrote:
    > Masao Mutoh wrote:
    > > Hi,
    > >
    > > rbbr-0.3.1 is now available.
    >
    > Great.
    >
    > What is it?
    Oops, See
    [url]http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/78606[/url]

    Thanks,

    --
    .:% Masao Mutoh<mutohhighway.ne.jp>

    Masao Mutoh Guest

  3. #3

    Default Re: [ANN] rbbr-0.3.1

    Hi,

    On Mon, 11 Aug 2003 23:06:15 +0900
    Brian Candler <B.Candlerpobox.com> wrote:
    > On Mon, Aug 11, 2003 at 10:50:56PM +0900, Masao Mutoh wrote:
    > > > > rbbr-0.3.1 is now available.
    > > > >
    > > > > rbbr-0.3.0 supported ruby-1.8.x only.
    > > > > rbbr-0.3.1 also supports ruby-1.6.x.
    > > >
    > > > Yes, but does it support rbbr duck typing? :-)
    > > >
    > > > <duck avoid="flying objects"/>
    > >
    > > I'm sorry but I'm not good at English. What is this mean?
    >
    > [url]http://images.google.com/images?q=rubber+duck&ie=ISO-8859-1&hl=en&btnG=Google+Search[/url]
    >
    > Sorry, my feeble attempt at humour after the long "duck typing" thread...
    No problem.
    I'm sorry but I've not been able to read ruby-talk mails for a week,
    because I've concentreted to work for Ruby-GNOME2-0.6.0.

    BTW, rubber duck seems cute, and the spelling is similer rbbr as you said.
    #I've known the goods but I've not know the name in English.

    Can I use it as rbbr's icon ?
    Are there any problems(license or that meaning)?

    --
    .:% Masao Mutoh<mutohhighway.ne.jp>

    Masao Mutoh Guest

  4. #4

    Default Re: [ANN] rbbr-0.3.1

    On Mon, Aug 11, 2003 at 11:27:48PM +0900, Masao Mutoh wrote:
    > BTW, rubber duck seems cute, and the spelling is similer rbbr as you said.
    > #I've known the goods but I've not know the name in English.
    >
    > Can I use it as rbbr's icon ?
    > Are there any problems(license or that meaning)?
    Those images were just turned up by google from various sites -
    unfortunately you'd have to check with the owner of each one.

    I don't actually have a rubber duck, otherwise I would photograph it for you
    :-)

    Cheers,

    Brian.

    Brian Candler Guest

  5. #5

    Default Re: [ANN] rbbr-0.3.1

    ----- Original Message -----
    From: "Masao Mutoh" <mutohhighway.ne.jp>
    To: "ruby-talk ML" <ruby-talkruby-lang.org>
    Sent: Monday, August 11, 2003 9:27 AM
    Subject: Re: [ANN] rbbr-0.3.1

    > > > > Yes, but does it support rbbr duck typing? :-)
    > > > >
    > > > > <duck avoid="flying objects"/>
    > > >
    > > > I'm sorry but I'm not good at English. What is this mean?
    > >
    > >
    [url]http://images.google.com/images?q=rubber+duck&ie=ISO-8859-1&hl=en&btnG=Googl[/url]
    e+Search
    > >
    > > Sorry, my feeble attempt at humour after the long "duck typing"
    thread...
    >
    > No problem.
    > I'm sorry but I've not been able to read ruby-talk mails for a week,
    > because I've concentreted to work for Ruby-GNOME2-0.6.0.
    >
    > BTW, rubber duck seems cute, and the spelling is similer rbbr as you said.
    > #I've known the goods but I've not know the name in English.
    There is one other aspect to this joke...
    the English word "duck" is also a verb,
    meaning to crouch suddenly, as when
    avoiding something thrown at you. (In
    this case, something thrown at Brian
    for making the original "rbbr duck" joke.)

    Cheers,
    Hal


    Hal E. Fulton Guest

  6. #6

    Default Re: [ANN] rbbr-0.3.1

    >>>>> "Dave" == Dave Thomas <davepragprog.com> writes:

    Dave> Brian Candler wrote:
    >> I don't actually have a rubber duck,
    Dave> So how do you debug code????

    I never thought to use rubber ducks - how does that work? I've always used
    rubber chickens (see RFC2321) or eviscerated hard disks.

    d.k.

    --
    Daniel Kelley - San Jose, CA
    For email, replace the first dot in the domain with an at.
    Daniel Kelley Guest

  7. #7

    Default Re: [ANN] rbbr-0.3.1

    Daniel Kelley wrote:
    >>>>>>"Dave" == Dave Thomas <davepragprog.com> writes:
    >>>>>>
    >>>>>>
    >
    > Dave> Brian Candler wrote:
    > >> I don't actually have a rubber duck,
    >
    > Dave> So how do you debug code????
    >
    >I never thought to use rubber ducks - how does that work? I've always used
    >rubber chickens (see RFC2321) or eviscerated hard disks.
    >
    >d.k.
    >
    >
    >
    I prefer squeaky dinosaurs over rubber ducks as a debugging tool.
    Finger puppets can also be used in an emergency if your ducky, dinosaur,
    or chicken are not near.

    - Brian W
    [url]http://coolnamehere.com/[/url]



    Brian Wisti Guest

  8. #8

    Default Re: [ANN] rbbr-0.3.1

    >>>>>> "Dave" == Dave Thomas <davepragprog.com> writes:
    >
    > Dave> Brian Candler wrote:
    >>> I don't actually have a rubber duck,
    >
    > Dave> So how do you debug code????
    >
    > I never thought to use rubber ducks - how does that work? I've always
    > used
    > rubber chickens (see RFC2321) or eviscerated hard disks.
    Waving a rubber duck at the problem works as well as waving a rubber
    chicken at it, but it's a bit more exotic (at least here in the US).
    You can also try waving a rubber frog but that only tends to work in
    France (particularly if you use the legs of the rubber frog alone).

    I've heard that some folks over in Sweetwater, TX have had really good
    results with a rubber rattlesnake as well, though other people say the
    effectiveness of the rattlesnake is in a class by itself and that it
    "works nothing like chicken".
    <[url]http://www.durangotexas.com/eyesontexas/festivals/rattlesnake/[/url]
    rattlesnake.htm>

    YMMV,

    Scott Thompson


    Scott Thompson Guest

  9. Moderated Post

    Default Re: [ANN] rbbr-0.3.1

    Removed by Administrator
    james_b Guest
    Moderated Post

  10. #10

    Default newbie mixin questions

    Hi,
    Just 2 questions:

    1) How can I mixin a class method (not an instance method)?

    2) How can I force a certain method to be called when the an object of a
    class that includes that module is initialized? Sort of like a mixin
    initialize....

    TIA
    Michael Garriss


    Michael Garriss Guest

  11. #11

    Default Re: newbie mixin questions

    Michael Garriss wrote:
    > Hi,
    > Just 2 questions:
    >
    > 1) How can I mixin a class method (not an instance method)?
    >
    > 2) How can I force a certain method to be called when the an object of
    > a class that includes that module is initialized? Sort of like a
    > mixin initialize....
    >
    > TIA
    > Michael Garriss
    >
    >
    >
    oops, didn't mean for it to end up in that thread


    Michael Garriss Guest

  12. #12

    Default Re: newbie mixin questions

    Michael Garriss wrote:
    > Hi,
    > Just 2 questions:
    >
    > 1) How can I mixin a class method (not an instance method)?
    Since #include doesn't propagate class/module methods, you have to use
    #extend:

    module M
    def foo; end # NOT: def M.foo
    end

    class C
    extend M
    end

    C.foo


    Joel VanderWerf Guest

  13. #13

    Default Re: newbie mixin questions


    ----- Original Message -----
    From: "Michael Garriss" <mgarrissearthlink.net>
    To: "ruby-talk ML" <ruby-talkruby-lang.org>
    Sent: Monday, August 11, 2003 3:16 PM
    Subject: newbie mixin questions

    > Hi,
    > Just 2 questions:
    >
    > 1) How can I mixin a class method (not an instance method)?
    class A
    class << self
    include SomeModule
    end
    end
    >
    > 2) How can I force a certain method to be called when the an object of a
    > class that includes that module is initialized? Sort of like a mixin
    > initialize....
    module SomeModule
    def new(*args)
    object = super *args
    # call whatever you want here
    object
    end
    end
    >
    > TIA
    > Michael Garriss
    >
    >
    >
    Gennady Guest

  14. #14

    Default Re: newbie mixin questions


    ----- Original Message -----
    From: "Michael Garriss" <mgarrissearthlink.net>
    To: "ruby-talk ML" <ruby-talkruby-lang.org>
    Sent: Monday, August 11, 2003 3:30 PM
    Subject: Re: newbie mixin questions

    > Gennady wrote:
    >
    > >----- Original Message -----
    > >From: "Michael Garriss" <mgarrissearthlink.net>
    > >To: "ruby-talk ML" <ruby-talkruby-lang.org>
    > >Sent: Monday, August 11, 2003 3:16 PM
    > >Subject: newbie mixin questions
    > >
    > >
    > >
    > >
    > >>Hi,
    > >> Just 2 questions:
    > >>
    > >>1) How can I mixin a class method (not an instance method)?
    > >>
    > >>
    > >
    > >class A
    > > class << self
    > > include SomeModule
    > > end
    > >end
    > >
    > >
    > Very cool. Will this require me to have two seperate modules though?
    > One for including class methods and the other of including the instance
    > methods.
    I think so. Technically, you can include the same module both as calss and
    instance, however usually included methods expect some known environment,
    either class or instance. You can do some smart checking too, of cource.
    >
    > >
    > >
    > >>2) How can I force a certain method to be called when the an object of a
    > >>class that includes that module is initialized? Sort of like a mixin
    > >>initialize....
    > >>
    > >>
    > >
    > >module SomeModule
    > > def new(*args)
    > > object = super *args
    > > # call whatever you want here
    > > object
    > > end
    > >end
    > >
    >
    > Again, very cool. If I include two modules into the same class, both
    > with a #new, will one be over written?
    I was not sure untill I tried it, and I was pleasantly surprised that they
    are called in the order of inclusion. [Ruby is] Very cool ;-)

    Gennady.



    Gennady Guest

Similar Threads

  1. rbbr borks on me
    By Xavier in forum Ruby
    Replies: 2
    Last Post: September 19th, 01:17 PM
  2. [ANN] rbbr-0.4.0
    By Masao Mutoh in forum Ruby
    Replies: 0
    Last Post: September 8th, 06:10 PM
  3. [ANN] rbbr-0.3.0
    By gabriele renzi in forum Ruby
    Replies: 0
    Last Post: August 17th, 09:04 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139