Class: Katalyst::Tables::Collection::Type::String

Inherits:
Value
  • Object
show all
Includes:
ActiveRecord::Sanitization::ClassMethods
Defined in:
lib/katalyst/tables/collection/type/string.rb

Instance Attribute Summary collapse

Attributes inherited from Value

#scope

Instance Method Summary collapse

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

#exactObject (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