Module: EasyType::Type

Defined in:
lib/easy_type/type.rb

Overview

This module contains all extensions used by EasyType within the type

To use it, include the following statement in your type

	include EasyType::Type

Defined Under Namespace

Modules: ClassMethods

Class Method Summary (collapse)

Instance Method Summary (collapse)

Class Method Details

+ (Object) included(parent)



14
15
16
# File 'lib/easy_type/type.rb', line 14

def self.included(parent)
	parent.extend(ClassMethods)
end

Instance Method Details

- (Group) groups

Return the groups the type contains

Returns:

  • (Group) —

    All defined groups



23
24
25
# File 'lib/easy_type/type.rb', line 23

def groups
	self.class.groups
end