false instance and false class and set_trace_func

Discussion in 'Ruby' started by trans. (T. Onoma), Sep 25, 2004.

  1. When I use set_trace_func the class argument that is passed in is often just
    'false', which I just took to be the FalseClass, having always thought they
    were synonymous. I see now that is not so:

    false.class
    => FalseClass
    irb(main):002:0> false.class.name
    => "FalseClass"
    irb(main):003:0> false.name
    NoMethodError: undefined method `name' for false:FalseClass
    from (irb):3

    So then why is set_trace_func turning up with false in the class parameter?

    Thanks,
    T.
    trans. (T. Onoma), Sep 25, 2004
    #1
    1. Advertising

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. trans.  (T. Onoma)
    Replies:
    1
    Views:
    165
    David A. Black
    Sep 25, 2004
  2. Stephen Kellett
    Replies:
    5
    Views:
    157
    Stephen Kellett
    Nov 30, 2004
  3. Stephen Kellett
    Replies:
    2
    Views:
    184
    Stephen Kellett
    Dec 12, 2004
  4. Stephen Kellett
    Replies:
    3
    Views:
    172
    gabriele renzi
    Dec 12, 2004
  5. Joel VanderWerf

    set_trace_func and exceptions

    Joel VanderWerf, Jul 9, 2007, in forum: Ruby
    Replies:
    2
    Views:
    114
    Joel VanderWerf
    Jul 10, 2007
Loading...

Share This Page