Custom format specifiers

Discussion in 'Ruby' started by Kevin Olbrich, Sep 19, 2006.

  1. Ruby has bunch of nifty shortcuts like

    %W{}, %r{}, etc...

    Is there any way to define a new one, or are these hard-wired?


    _Kevin
    www.sciwerks.com
    --
    Posted with http://DevLists.com. Sign up and save your mailbox.
     
    Kevin Olbrich, Sep 19, 2006
    #1
    1. Advertisements

  2. Kevin Olbrich

    Hal Fulton Guest

    Kevin Olbrich wrote:
    > Ruby has bunch of nifty shortcuts like
    >
    > %W{}, %r{}, etc...
    >
    > Is there any way to define a new one, or are these hard-wired?
    >


    They're hard-wired... but there has been some discussion
    of customized ones.


    Hal
     
    Hal Fulton, Sep 19, 2006
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Pep
    Replies:
    0
    Views:
    744
  2. Martin Ambuhl

    Re: C# format Specifiers Help.

    Martin Ambuhl, Aug 21, 2003, in forum: C Programming
    Replies:
    4
    Views:
    703
    Randy Howard
    Aug 22, 2003
  3. Peter Ammon

    Writing arguments under format specifiers

    Peter Ammon, Jul 4, 2004, in forum: C Programming
    Replies:
    4
    Views:
    444
    Mike Wahler
    Jul 6, 2004
  4. siliconwafer

    understanding format specifiers

    siliconwafer, Aug 30, 2005, in forum: C Programming
    Replies:
    5
    Views:
    919
    Charlie Gordon
    Aug 31, 2005
  5. Harry

    fprintf format specifiers

    Harry, Oct 12, 2006, in forum: C Programming
    Replies:
    9
    Views:
    675
    Christopher Benson-Manica
    Oct 13, 2006
  6. rh00667
    Replies:
    2
    Views:
    704
    rh00667
    Mar 2, 2007
  7. John Mott
    Replies:
    2
    Views:
    418
    John Mott
    Aug 7, 2007
  8. aki
    Replies:
    1
    Views:
    500
    Ben Bacarisse
    Mar 31, 2009
Loading...