Eigen method

What do others think of the idea of #eigen method:

class Foo
  eigen.attr_accessor :bar
end

Foo.bar = 100
Foo.bar  #=> 100

Basically #eigen provides a convenient way to call methods on an objects
singleton class w/o having to open a class << self block.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs