✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

🤑 Join the Treehouse affiliate program and earn 25% recurring commission!

New No-Code Track! 🚀start learning today!

🌟 Dreaming of a bright future? 🎓 Ask about the Treehouse Scholarship program! 🚀

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

🤑 Join the Treehouse affiliate program and earn 25% recurring commission!

  • Treehouse Logo
  • Plans
    Chevron
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
  • Library
    Chevron
    • All Courses
    • Tracks
    • College Credit
  • Techdegree
    Chevron
    • Overview
    • Front End Development
    • Full Stack JavaScript
    • Data Analysis
    • UX Design
    • Python
  • Community
    Chevron
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
  • Resources
    Chevron
    • Career Toolbox
    • CodeForward
    • Free Treehouse Near Me
    • Jobs
    • Blog
    • Support
    • About
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks College Credit
  • Overview Front End Web Development Full Stack JavaScript Python Development Data Analysis UX Design
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Career Toolbox CodeForward Free Treehouse Near Me Jobs Blog Support About
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • Android
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
    • Showing results for:
    • Ruby
    • Ruby Core and Standard Library
    • Ruby Core
    • Close
  • Hans Peter Jonas Høgh-Noori
    Hans Peter Jonas Høgh-Noori
    8,781 Points

    Create a class called Name which is a Struct with two attributes: first and last

    Posted on Dec 17, 2020 by Hans Peter Jonas Høgh-Noori
    Hans Peter Jonas Høgh-Noori
    8,781 Points
    • Ruby
    • Ruby Core and Standard Library
    • Ruby Core
    • Struct

    1 Answer

  • Shreemangal Sethi
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Shreemangal Sethi
    Full Stack JavaScript Techdegree Student 15,552 Points

    I don't get the example.txt file when i hit refresh.

    Posted on Dec 5, 2019 by Shreemangal Sethi
    .a{fill-rule:evenodd;}techdegree
    Shreemangal Sethi
    Full Stack JavaScript Techdegree Student 15,552 Points
    • Ruby
    • Ruby Core and Standard Library
    • Ruby Core
    • File

    1 Answer

  • blake littleton
    blake littleton
    14,255 Points

    The "dump" method was not called.

    Posted on Aug 7, 2017 by blake littleton
    blake littleton
    14,255 Points
    • Ruby
    • Ruby Core and Standard Library
    • Ruby Core
    • Marshal

    1 Answer

  • Hunter Miller
    Hunter Miller
    4,592 Points

    Create a class called Name which is a Struct with two attributes: first and last.

    Posted on Apr 5, 2017 by Hunter Miller
    Hunter Miller
    4,592 Points
    • Ruby
    • Ruby Core and Standard Library
    • Ruby Core
    • Struct

    1 Answer

  • Daniel Crews
    Daniel Crews
    14,008 Points

    Struct Instantiation Not Working in Challenge

    Posted on Apr 15, 2016 by Daniel Crews
    Daniel Crews
    14,008 Points
    • Ruby
    • Ruby Core and Standard Library
    • Ruby Core
    • Struct

    1 Answer

  • aronlilland
    aronlilland
    8,951 Points

    so what exactly is the advantage structs offer over classes if it seemingly is the same amount of code?

    Posted on Feb 27, 2016 by aronlilland
    aronlilland
    8,951 Points
    • Ruby
    • Ruby Core and Standard Library
    • Ruby Core
    • Struct

    2 Answers

  • Sean Flanagan
    Sean Flanagan
    33,236 Points

    Assigning to another variable

    Posted on Nov 24, 2015 by Sean Flanagan
    Sean Flanagan
    33,236 Points
    • Ruby
    • Ruby Core and Standard Library
    • Ruby Core
    • Marshal

    2 Answers

  • Rachelle Wood
    Rachelle Wood
    15,362 Points

    Is the .superclass method eliminated for Ruby 2.2.3 ?

    Posted on Oct 24, 2015 by Rachelle Wood
    Rachelle Wood
    15,362 Points
    • Ruby
    • Ruby Core and Standard Library
    • Ruby Core
    • Kernel and Object

    1 Answer

  • Ke Er Xiong
    Ke Er Xiong
    14,622 Points

    Challenge Gives Back Bummer! [:open, :open, :methods_called, :methods_called]

    Posted on Aug 8, 2015 by Ke Er Xiong
    Ke Er Xiong
    14,622 Points
    • Ruby
    • Ruby Core and Standard Library
    • Ruby Core
    • File

    1 Answer

  • Lewis Cowles
    Lewis Cowles
    74,902 Points

    I think the test is broken...

    Posted on Aug 8, 2015 by Lewis Cowles
    Lewis Cowles
    74,902 Points
    • Ruby
    • Ruby Core and Standard Library
    • Ruby Core
    • File

    0 Answers

  • Jason Carr
    Jason Carr
    5,495 Points

    Using the puts method, write anything to the file variable in the block.

    Posted on Aug 7, 2015 by Jason Carr
    Jason Carr
    5,495 Points
    • Ruby
    • Ruby Core and Standard Library
    • Ruby Core
    • File

    2 Answers

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

    Treehouse

  • About
  • Blog
  • Careers
  • Community
  • Stories
  • Shop
  • Contact
  • Gift Card

See Full Catalogue

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
  • Python Development
  • Data Analysis
  • UX Design

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
  • ...see more

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
  • ...see more

Explore

  • Plans
  • Affiliates
  • Perks
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2025 Treehouse Island, Inc.