[rspec-devel] EvalModule meaning and naming concerns

Michael Klishin michael.s.klishin at gmail.com
Thu May 3 23:47:37 EDT 2007


I''m digging through RSpec source code and stumbled upon EvalModule
class in Spec::DSL::Behaviour module.

First question is what is semantics of this class? I see the way it is
used in Behaviour module but doubt I get it right.

Second question is why it is called module? We know that Ruby modules
cannot be instantiated so it is a bit confusing. Maybe EvalContext is
a better fit?

Thanks in advance. MK.
This was freedom. Losing all hope was freedom.

Chasing the beauty in programming:
www.ruby-lang.org | www.rubyonrails.org

More information about the rspec-devel mailing list