Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stdlib/resolv: Resolv::DNS::Resource::Generic.create returns a class #1655

Merged
merged 2 commits into from
Nov 30, 2023

Commits on Nov 29, 2023

  1. stdlib/resolv: Resolv::DNS::Resource::Generic.create returns a class

    `Resolv::DNS::Resource::Generic.create` is not a data constructor but
    defines a new subclass of `Resolv::DNS::Resource::Generic` and returns
    it.
    
    ```
    % irb -rresolv
    irb(main):001> rrtype = Resolv::DNS::Resource::Generic.create(65280, Resolv::DNS::Resource::IN::ClassValue)
    => Resolv::DNS::Resource::Generic::Type65280_Class1
    irb(main):002> rrtype.class
    => Class
    irb(main):003> rrtype.superclass
    => Resolv::DNS::Resource::Generic
    ```
    hanazuki committed Nov 29, 2023
    Configuration menu
    Copy the full SHA
    5180d02 View commit details
    Browse the repository at this point in the history
  2. Remove unwanted comment

    hanazuki committed Nov 29, 2023
    Configuration menu
    Copy the full SHA
    b02557a View commit details
    Browse the repository at this point in the history