Module: Amiba::Source

Included in:
Entry, Feed, Layout, Page, PageEntry, Partial
Defined in:
lib/amiba/source.rb,
lib/amiba/source/feed.rb,
lib/amiba/source/entry.rb,
lib/amiba/source/partial.rb,
lib/amiba/source/entry_finder.rb

Defined Under Namespace

Modules: ClassMethods, EntryFinder, InstanceMethods Classes: CategoryScope, Entry, Feed, FinderProxy, Layout, LimitScope, OffsetScope, Page, PageEntry, Partial, StateScope

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



4
5
6
7
8
9
# File 'lib/amiba/source.rb', line 4

def self.included(base)
  base.send :include, InstanceMethods
  base.send :extend, ClassMethods
  base.send :attr_reader, :name
  base.send :include, ActiveModel::Validations
end