Class: Qwack::Meta

Inherits:
Object
  • Object
show all
Defined in:
lib/qwack/meta.rb

Overview

Shorthand for defining Array types

Class Method Summary collapse

Class Method Details

.array_of(type) ⇒ Object



8
9
10
11
12
13
14
# File 'lib/qwack/meta.rb', line 8

def self.array_of(type)
  Class.new do
    extend Qwack::Base
    extend Qwack::BaseArray
    allow_types(type)
  end
end