Log in Sign up
2 Matching Annotations
  1. Sep 2022
  2. rubystyle.guide rubystyle.guide
    The Ruby Style Guide
    1
    1. TylerRick 14 Sep 2022
      in Public
      Also be aware of how Ruby handles aliases and inheritance: an alias references the method that was resolved at the time the alias was defined; it is not dispatched dynamically.
      inheritance (programming) Ruby: inheritance alias caveat
    Visit annotations in context

    Tags

    • inheritance (programming)
    • Ruby: inheritance
    • alias
    • caveat

    Annotators

    • TylerRick

    URL

    rubystyle.guide/
  3. Apr 2021
  4. gist.github.com gist.github.com
    Ruby classes inherit methods on singleton classes
    1
    1. TylerRick 13 Apr 2021
      in Public
      Apparently when you create a subclass, that subclass's singleton class has # its superclass's singleton class as an ancestor.

      This is a good thing. It allows class methods to be inherited by subclasses.

      observation Ruby: singleton class Ruby: singleton methods Ruby: inheritance programming languages: learning/understanding the subtleties Ruby: ancestors / receiver chain programming languages: features
    Visit annotations in context

    Tags

    • Ruby: ancestors / receiver chain
    • Ruby: singleton methods
    • Ruby: singleton class
    • observation
    • programming languages: features
    • Ruby: inheritance
    • programming languages: learning/understanding the subtleties

    Annotators

    • TylerRick

    URL

    gist.github.com/cowboyd/1642793
Share:
Group. Only group members will be able to view this annotation.
Only me. No one else will be able to view this annotation.
Hypothes.is
  • About
  • Blog
  • Bioscience
  • Education
  • Jobs
  • Help
  • Contact
  • Terms of Service
  • Privacy Policy