• Home
  • Free Trial
  • Sign In
  • Plans
  • Tracks
  • Library
  • Community
  • Support
  • Jobs
    • 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
  • Nick Vitsinsky
    Nick Vitsinsky
    7,246 Points

    Why 'Dog.new("Fido")' still works if we have now such class?

    Posted March 15, 2016 10:30am by Nick Vitsinsky
    Nick Vitsinsky
    7,246 Points
    • Ruby
    • Ruby Modules
    • Include and Extend
    • Include

    1 Answer

  • Frank Kuester
    Frank Kuester
    3,002 Points

    This time, why do I not have to define the fetch method inside the Dog or Cat class?

    Posted July 23, 2015 3:07pm by Frank Kuester
    Frank Kuester
    3,002 Points
    • Ruby
    • Ruby Modules
    • Include and Extend
    • Include

    1 Answer

  • Miroslav Králik
    Miroslav Králik
    8,448 Points

    Can I use instead of the module, a class? And can I do the same when creating a separate class out of this Fetcher class

    Posted June 28, 2015 7:47am by Miroslav Králik
    Miroslav Králik
    8,448 Points
    • Ruby
    • Ruby Modules
    • Include and Extend
    • Include

    1 Answer

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
  • Perks
  • Public Library Access
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2023 Treehouse Island, Inc.