Sha256: d728f470118f477ffffe4b1fd787d3642881255fcb8987cf767ca1666e45cae2

Contents?: true

Size: 362 Bytes

Versions: 34

Compression:

Stored size: 362 Bytes

Contents

class Tabulatr::Renderer::Filter

  attr_accessor :name, :partial, :block

  def initialize(name, partial: nil, &block)
    @name = name
    @block = block
    @partial = partial
  end

  def filter
    :custom
  end

  def to_partial_path
    if partial.present?
      partial
    else
      "tabulatr/filter/#{name.to_s.downcase.underscore}"
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
tabulatr2-0.10.4 lib/tabulatr/renderer/filter.rb
tabulatr2-0.10.3 lib/tabulatr/renderer/filter.rb
tabulatr2-0.10.2 lib/tabulatr/renderer/filter.rb
tabulatr2-0.10.1 lib/tabulatr/renderer/filter.rb
tabulatr2-0.10.0 lib/tabulatr/renderer/filter.rb
tabulatr2-0.9.48 lib/tabulatr/renderer/filter.rb
tabulatr2-0.9.47 lib/tabulatr/renderer/filter.rb
tabulatr2-0.9.46 lib/tabulatr/renderer/filter.rb
tabulatr2-0.9.45 lib/tabulatr/renderer/filter.rb
tabulatr2-0.9.44 lib/tabulatr/renderer/filter.rb
tabulatr2-0.9.43 lib/tabulatr/renderer/filter.rb
tabulatr2-0.9.42 lib/tabulatr/renderer/filter.rb
tabulatr2-0.9.41 lib/tabulatr/renderer/filter.rb
tabulatr2-0.9.40 lib/tabulatr/renderer/filter.rb
tabulatr2-0.9.39 lib/tabulatr/renderer/filter.rb
tabulatr2-0.9.38 lib/tabulatr/renderer/filter.rb
tabulatr2-0.9.37 lib/tabulatr/renderer/filter.rb
tabulatr2-0.9.36 lib/tabulatr/renderer/filter.rb
tabulatr2-0.9.35 lib/tabulatr/renderer/filter.rb
tabulatr2-0.9.34 lib/tabulatr/renderer/filter.rb