Module: Katalyst::Tables::Collection::Type
- Defined in:
- lib/katalyst/tables/collection/type.rb,
lib/katalyst/tables/collection/type/date.rb,
lib/katalyst/tables/collection/type/enum.rb,
lib/katalyst/tables/collection/type/float.rb,
lib/katalyst/tables/collection/type/query.rb,
lib/katalyst/tables/collection/type/value.rb,
lib/katalyst/tables/collection/type/search.rb,
lib/katalyst/tables/collection/type/string.rb,
lib/katalyst/tables/collection/type/boolean.rb,
lib/katalyst/tables/collection/type/integer.rb,
lib/katalyst/tables/collection/type/helpers/range.rb,
lib/katalyst/tables/collection/type/helpers/delegate.rb,
lib/katalyst/tables/collection/type/helpers/multiple.rb,
lib/katalyst/tables/collection/type/helpers/extensions.rb
Overview
Based on ActiveModel::Type – provides a registry for Collection filtering
Defined Under Namespace
Modules: Helpers Classes: Boolean, Date, Enum, Float, Integer, Query, Search, String, Value
Class Attribute Summary collapse
-
.registry ⇒ Object
:nodoc:.
Class Method Summary collapse
Class Attribute Details
.registry ⇒ Object
:nodoc:
13 14 15 |
# File 'lib/katalyst/tables/collection/type.rb', line 13 def registry @registry end |
Class Method Details
.default_value ⇒ Object
23 24 25 |
# File 'lib/katalyst/tables/collection/type.rb', line 23 def default_value @default_value ||= Value.new end |
.lookup ⇒ Object
19 20 21 |
# File 'lib/katalyst/tables/collection/type.rb', line 19 def lookup(...) registry.lookup(...) end |
.register(type_name, klass = nil) ⇒ Object
15 16 17 |
# File 'lib/katalyst/tables/collection/type.rb', line 15 def register(type_name, klass = nil, &) registry.register(type_name, klass, &) end |