Module: Halogen::Collection::ClassMethods

Defined in:
lib/halogen/collection.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#define_collection(name) ⇒ Module

Returns self.

Parameters:

  • name (Symbol, String)

    name of the collection

Returns:

  • (Module)

    self


27
28
29
# File 'lib/halogen/collection.rb', line 27

def define_collection(name)
  self.collection_name = name.to_s
end