Thread: Help

    #1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2014
    Posts
    1
    Rep Power
    0

    Help


    Guys i am just a beginer in ruby and i have 2 question if anyone ca help me to solve it.

    1. given that superclass returns nil when called on Basicobject but a non nil value otherwise,write a ruby method that if passed any object will print the objects class and its ancestors classes all the way upto the Basicobject

    i need a script for this if anyone can help with it
  2. #2
  3. --
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Jul 2012
    Posts
    3,924
    Rep Power
    1045
    Hi,

    so what have you tried? Where did you get stuck?
    The 6 worst sins of security ē How to (properly) access a MySQL database with PHP

    Why canít I use certain words like "drop" as part of my Security Question answers?
    There are certain words used by hackers to try to gain access to systems and manipulate data; therefore, the following words are restricted: "select," "delete," "update," "insert," "drop" and "null".

IMN logo majestic logo threadwatch logo seochat tools logo