Sha256: ea0ac76e32e53adc4d4046170165a3adb7eed484d3ce19b7283b5eb68cfe26fd

Contents?: true

Size: 559 Bytes

Versions: 7

Compression:

Stored size: 559 Bytes

Contents

module ActiveList
  module Renderers
    class AbstractRenderer
      attr_reader :generator, :table

      def initialize(generator)
        @generator = generator
        @table = generator.table
      end

      def var_name(name)
        @generator.var_name(name)
      end

      def remote_update_code
        fail NotImplementedError, "#{self.class.name}#remote_update_code is not implemented."
      end

      def build_data_code
        fail NotImplementedError, "#{self.class.name}#build_table_code is not implemented."
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
active_list-6.7.3 lib/active_list/renderers/abstract_renderer.rb
active_list-6.7.2 lib/active_list/renderers/abstract_renderer.rb
active_list-6.7.1 lib/active_list/renderers/abstract_renderer.rb
active_list-6.7.0 lib/active_list/renderers/abstract_renderer.rb
active_list-6.6.2 lib/active_list/renderers/abstract_renderer.rb
active_list-6.6.1 lib/active_list/renderers/abstract_renderer.rb
active_list-6.6.0 lib/active_list/renderers/abstract_renderer.rb