Module: Canned::Definition
- Defined in:
- lib/canned/definition.rb
Overview
Definition module
This module is used to generate a canned definition that can later be refered when calling “canned_setup”.
TODO: Usage
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Class Method Details
.included(klass) ⇒ Object
27 28 29 30 31 32 33 34 35 36 |
# File 'lib/canned/definition.rb', line 27 def self.included(klass) klass.class_eval(" @@tests = {} @@profiles = {} def self.tests; @@tests end def self.profiles; @@profiles end ", __FILE__, __LINE__ + 1) klass.extend ClassMethods end |