• Home
  • Free Trial
  • Sign In
  • Techdegree
  • Tracks
  • Library
  • Community
  • Support
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • 21st Century Skills
      • • Android
      • • APIs
      • • Business
      • • C#
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Equity, Diversity, and Inclusion (EDI)
      • • Go
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • PHP
      • • Python
      • • Quality Assurance
      • • Ruby
      • • Security
  • Alejandra Valdivia
    Alejandra Valdivia
    7,665 Points

    Hello there! I'm in the Ruby Basics class doing the methods.rb challenge and I can't seem to get the answer right...

    Posted March 2, 2021 9:09pm by Alejandra Valdivia
    Alejandra Valdivia
    7,665 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Return Values

    3 Answers

  • M J
    M J
    5,225 Points

    How to make a method return a particular value (Ruby)?

    Posted July 25, 2020 3:27pm by M J
    M J
    5,225 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Return Values

    1 Answer

  • M J
    M J
    5,225 Points

    How to make a method return a particular value?

    Posted July 25, 2020 3:24pm by M J
    M J
    5,225 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Return Values

    1 Answer

  • Steve Rogers
    Steve Rogers
    3,285 Points

    methods and arguments

    Posted October 31, 2019 4:23pm by Steve Rogers
    Steve Rogers
    3,285 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Return Values

    3 Answers

  • Aparna Balasubramanian
    Aparna Balasubramanian
    2,483 Points

    Define a method named three that always returns the number 3. Also define a method named five that always returns the nu

    Posted September 30, 2019 9:47am by Aparna Balasubramanian
    Aparna Balasubramanian
    2,483 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Return Values

    2 Answers

  • Chris Drummond
    Chris Drummond
    1,469 Points

    Unsure about this one

    Posted June 5, 2019 12:22am by Chris Drummond
    Chris Drummond
    1,469 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Return Values

    1 Answer

  • Katie Urie
    Katie Urie
    208 Points

    def three(number) number = 3 end puts ("3") def five(number) number = 5 end puts ("5")

    Posted April 30, 2019 7:54pm by Katie Urie
    Katie Urie
    208 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Return Values

    1 Answer

  • Hunter Wierstra
    Hunter Wierstra
    7,454 Points

    I can't figure out Ruby-Method Return Values Challenge

    Posted April 22, 2019 8:06pm by Hunter Wierstra
    Hunter Wierstra
    7,454 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Return Values

    1 Answer

  • Derek Hutson
    Derek Hutson
    9,740 Points

    Weird question.. what am I doing wrong?

    Posted March 18, 2019 6:38pm by Derek Hutson
    Derek Hutson
    9,740 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Return Values

    1 Answer

  • Christopher Davis
    Christopher Davis
    8,555 Points

    I'm confused by how to always return the number 3 or 5 here.

    Posted January 24, 2019 4:22pm by Christopher Davis
    Christopher Davis
    8,555 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Return Values

    1 Answer

  • yahav rosner
    yahav rosner
    4,304 Points

    can you help me?

    Posted July 23, 2018 10:35am by yahav rosner
    yahav rosner
    4,304 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Return Values

    1 Answer

  • Jarvis Jennings
    PRO
    Jarvis Jennings
    Pro Student 358 Points

    I do not understand why I cannot define the Method with Integers

    Posted April 26, 2018 2:33pm by Jarvis Jennings
    Jarvis Jennings
    Pro Student 358 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Return Values

    1 Answer

  • Kristen Kerchhoff
    Kristen Kerchhoff
    1,895 Points

    Methods working locally but in online editor

    Posted March 19, 2018 3:16pm by Kristen Kerchhoff
    Kristen Kerchhoff
    1,895 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Return Values

    1 Answer

  • MaryAnn Eleanya
    MaryAnn Eleanya
    8,626 Points

    The program isn't recognizing my arguments.

    Posted March 7, 2018 12:01am by MaryAnn Eleanya
    MaryAnn Eleanya
    8,626 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Return Values

    1 Answer

  • MaryAnn Eleanya
    MaryAnn Eleanya
    8,626 Points

    The method name is not returning any number

    Posted March 6, 2018 5:45pm by MaryAnn Eleanya
    MaryAnn Eleanya
    8,626 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Return Values

    2 Answers

  • Fin Muir
    Fin Muir
    1,108 Points

    Help me please

    Posted February 3, 2018 6:34am by Fin Muir
    Fin Muir
    1,108 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Return Values

    1 Answer

  • Ben Santen
    Ben Santen
    1,998 Points

    I cant pass this challenge

    Posted December 6, 2017 4:42pm by Ben Santen
    Ben Santen
    1,998 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Return Values

    1 Answer

  • Sherman Edwards
    Sherman Edwards
    937 Points

    Whats wrong

    Posted November 13, 2017 7:03pm by Sherman Edwards
    Sherman Edwards
    937 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Return Values

    1 Answer

  • Mika Laakso
    Mika Laakso
    4,222 Points

    wrong number of arguments (given 0, expected 2)

    Posted November 7, 2017 9:36pm by Mika Laakso
    Mika Laakso
    4,222 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Return Values

    2 Answers

  • Samuel Joseph
    Samuel Joseph
    5,406 Points

    I am trying to return 5, but it keeps telling me that I am wrong. def five(b) b = 5 return b end

    Posted November 6, 2017 1:02am by Samuel Joseph
    Samuel Joseph
    5,406 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Return Values

    1 Answer

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

Treehouse Logo
Our mission is to bring affordable technology education to people everywhere in order to help them achieve their dreams and change the world.
Company
Careers
Contact
Library
Tracks
Community
Stories
Perks
Affiliate Program
Treehouse for Libraries
Topics
HTML
CSS
Design
JavaScript
Ruby
View all 24 Topics
Tracks
Front End Web Development
Full Stack JavaScript
Beginning Python
UX: Interaction Design
Digital Literacy
View all 42 Tracks
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
  • About Treehouse
  • Blog
  • Shop
  • Privacy Policy
  • Terms & Conditions
  • © 2021 Treehouse Island, Inc.