Class: Katalyst::Tables::Collection::Type::String
- Inherits:
-
Value
- Object
- ActiveModel::Type::Value
- Value
- Katalyst::Tables::Collection::Type::String
- Defined in:
- lib/katalyst/tables/collection/type/string.rb
Defined Under Namespace
Classes: Match, MatchHandler
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.
13 14 15 16 17 18 |
# File 'lib/katalyst/tables/collection/type/string.rb', line 13 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.
8 9 10 |
# File 'lib/katalyst/tables/collection/type/string.rb', line 8 def exact @exact end |