Module: Schema::Controls::Schema::Attributes

Included in:
Example, OtherExample
Defined in:
lib/schema/controls/schema.rb

Class Method Summary collapse

Class Method Details

.included(cls) ⇒ Object



43
44
45
46
47
48
49
# File 'lib/schema/controls/schema.rb', line 43

def self.included(cls)
  cls.class_exec do
    include ::Schema
    attribute :some_attribute
    attribute :some_other_attribute
  end
end