LoginSignup
3
2

More than 5 years have passed since last update.

allocator undefined for Data (TypeError) について

Posted at

例えば

$ ruby --version
ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-linux]

class Data
  def initialize
    puts "foo"
  end
end
dt = Data.new

を実行しようとすると
`new': allocator undefined for Data (TypeError)
と怒られる。
Dataというクラスが既に定義されている。別名に変える必要あり。

3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2