Class: Tableficate::Filter::Input

Inherits:
Base
  • Object
show all
Defined in:
lib/tableficate/filters/input.rb

Direct Known Subclasses

InputStart, InputStop

Instance Attribute Summary

Attributes inherited from Base

#attrs, #field_name, #label, #label_options, #name, #table, #template

Instance Method Summary collapse

Methods inherited from Base

#field_value

Constructor Details

#initialize(table, name, options = {}) ⇒ Input

Returns a new instance of Input.



4
5
6
7
8
9
# File 'lib/tableficate/filters/input.rb', line 4

def initialize(table, name, options = {})
  super(table, name, options)

  new_partial = "filters/input_#{@attrs[:type]}"
  @template = new_partial if table.template.lookup_context.exists?(Tableficate::Utils::template_path(table.template, new_partial, table.theme), [], true)
end