Sha256: 9f02273ea7d7c05bb1ecd899dc06f6d217c6380589e36b67d110aa799735712c

Contents?: true

Size: 417 Bytes

Versions: 6

Compression:

Stored size: 417 Bytes

Contents

module Riddle
  class Configuration
    class TSVSource < Riddle::Configuration::Source
      def self.settings
        [:type, :tsvpipe_command, :tsvpipe_attr_field, :tsvpipe_attr_multi]
      end

      attr_accessor *self.settings

      def initialize(name, type = 'tsvpipe')
        @name, @type = name, type
      end

      def valid?
        super && (@tsvpipe_command || @parent)
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
riddle-2.2.0 lib/riddle/configuration/tsv_source.rb
riddle-2.1.0 lib/riddle/configuration/tsv_source.rb
riddle-2.0.0 lib/riddle/configuration/tsv_source.rb
riddle-1.5.12 lib/riddle/configuration/tsv_source.rb
riddle-1.5.11 lib/riddle/configuration/tsv_source.rb
riddle-1.5.10 lib/riddle/configuration/tsv_source.rb