class TableStructure::Utils::TypedProc
Public Class Methods
new(types:, **options, &block)
click to toggle source
Calls superclass method
TableStructure::Utils::Proc::new
# File lib/table_structure/utils.rb, line 15 def initialize(types:, **options, &block) @types = [types].flatten.compact super(**options, &block) end
Public Instance Methods
typed?(type)
click to toggle source
# File lib/table_structure/utils.rb, line 20 def typed?(type) @types.include?(type) end