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

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

Defined Under Namespace

Classes: Match, MatchHandler

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.



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

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