Class

  • Get a class's name
    AnyCustomer.name
    #=> "AnyCustomer"
    

Class alias

module Test
  class Abc
  end
end

Test::Bbc = Test::Abc

it { expect(Test::Bbc.object_id).to eq(Test::Abc.object_id) }

Reference

results matching ""

    No results matching ""