Sha256: 637dc6f2c32545267577683aef7df1a68d470da5d8e9667b9b6eb360f44e96c5

Contents?: true

Size: 631 Bytes

Versions: 4

Compression:

Stored size: 631 Bytes

Contents

require 'genomer'

class GenomerPluginView < Genomer::Plugin

  def run
    self.class.fetch_view(arguments.shift).new(arguments,flags).run
  end

  def self.fetch_view(view)
    require 'genomer-plugin-view/' + view
    const_get(view.capitalize)
  end

  def self.convert_command_line_flags(flags)
    flags.inject(Hash.new) do |hash,(k,v)|
      k = case k
      when :identifier                then k
      when :prefix                    then k
      when :generate_encoded_features then :encoded
      when :reset_locus_numbering     then :reset
      else nil
      end

      hash[k] = v if k
      hash
    end
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
genomer-plugin-view-0.0.5 lib/genomer-plugin-view.rb
genomer-plugin-view-0.0.4 lib/genomer-plugin-view.rb
genomer-plugin-view-0.0.3 lib/genomer-plugin-view.rb
genomer-plugin-view-0.0.2 lib/genomer-plugin-view.rb