Class: Katalyst::Tables::Collection::Type::String
- Inherits:
-
Value
- Object
- ActiveModel::Type::Value
- Value
- Katalyst::Tables::Collection::Type::String
- Includes:
- ActiveRecord::Sanitization::ClassMethods
- Defined in:
- lib/katalyst/tables/collection/type/string.rb
Instance Attribute Summary collapse
-
#exact ⇒ Object
(also: #exact?)
readonly
Returns the value of attribute exact.
Attributes inherited from Value
Instance Method Summary collapse
-
#initialize(exact: false) ⇒ String
constructor
A new instance of String.
Methods inherited from Value
#filter, #filter?, #filterable?, #suggestions, #to_param
Constructor Details
#initialize(exact: false) ⇒ String
Returns a new instance of String.
15 16 17 18 19 20 |
# File 'lib/katalyst/tables/collection/type/string.rb', line 15 def initialize(exact: false, **) super(**) @exact = exact @delegate = ActiveModel::Type::String.new end |
Instance Attribute Details
#exact ⇒ Object (readonly) Also known as: exact?
Returns the value of attribute exact.
10 11 12 |
# File 'lib/katalyst/tables/collection/type/string.rb', line 10 def exact @exact end |