Module: LazyConstMixins
- Defined in:
- lib/lazy_const/spec.rb
Instance Method Summary collapse
- #defines_consts(*consts) ⇒ Object (also: #defines_const)
Instance Method Details
#defines_consts(*consts) ⇒ Object Also known as: defines_const
2 3 4 5 6 7 8 |
# File 'lib/lazy_const/spec.rb', line 2 def defines_consts(*consts) consts.each do |const| it "defined constant #{const} is an instance of #{described_class}" do described_class.public_send(const.to_sym).should be_instance_of(described_class) end end end |