Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7961323
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T05:00:26+00:00 2026-06-04T05:00:26+00:00

Ruby is fully object oriented language . In ruby, everything is an object &

  • 0

Ruby is fully object oriented language. In ruby, everything is an object & therefore, belongs to some class. for example 5 belongs to Object class

1.9.3p194 :001 > 5.class
 => Fixnum 
1.9.3p194 :002 > 5.class.superclass
 => Integer 
1.9.3p194 :003 > 5.class.superclass.superclass
 => Numeric 
1.9.3p194 :005 > 5.class.superclass.superclass.superclass
 => Object 
1.9.3p194 :006 > 5.class.superclass.superclass.superclass.superclass
 => BasicObject 
1.9.3p194 :007 > 5.class.superclass.superclass.superclass.superclass.superclass
 => nil 

so, we have to call all methods by prefixing class/object name as in Object_name#method_name. example:

5.times{|i| puts i}

now, rails has these so called helpers like stylesheet_link_tag, javascript_include_tag, form_for etc which do follow this Object_name#method_name syntax, so i guess they are just normal functions.

so my question is

  1. What are these rails helpers?
  2. If they just functions & do not
    inherit from any class. Doesn’t that contradict the claim made
    saying – in ruby, everything a object & there are no primitives.
    As the example, people cite 5.+(6) saying even operators are just
    plain methods?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T05:00:27+00:00Added an answer on June 4, 2026 at 5:00 am
    • ActionView::Helpers
    • ActionController::Helpers

    For other things called without a receiver, look at the Kernel module, where stuff like puts is defined. Since the module is included in Object, its methods are available everywhere. How exactly would that contradict the — IMHO overused — claim that everything is an object?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So, I'm curious as to how Ruby is a fully object oriented language. I
Ruby defines #clone in Object . To my suprise, some classes raise Exceptions when
I have been looking for a fully functional WSDL client generator for ruby. I
Ruby's unit testing framework executes unit tests even though nobody creates unit test object.
I'm having trouble deserializing a ruby class that I wrote to YAML. Where I
I'm new to the Ruby and Ruby on Rails world. I've read some guides,
First of all, I realize I should have tried to fully grasp Ruby before
In Ruby any object can be transferred, i.e. serialized, to a YAML document by
I'm running CentOS6 and installed Ruby from source, along with Rails and some other
I have developed a fully functional ruby-on-rails application which utilizes numerous mysql tables. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.