Sha256: e00e658fb91fedcf427a07e6260b57192e5f380c0490cc9dc16e4b75218d0760

Contents?: true

Size: 575 Bytes

Versions: 7

Compression:

Stored size: 575 Bytes

Contents

class GenomerPluginSimple < Genomer::Plugin

  def run
    case arguments.shift
    when nil           then 'Plugin "simple" called'
    when 'echo'        then "Echo: #{arguments.join(' ')}"
    when 'describe'    then "The scaffold contains #{scaffold.length} entries"
    when 'annotations' then annotations
    end
  end

  def annotations
    args = Hash.new
    args[:prefix] = flags[:prefix] if flags[:prefix]
    args[:reset]  = flags[:reset_locus_numbering] if flags[:reset_locus_numbering]
    super(args).inject("##gff-version 3\n"){|s, a| s << a.to_s}
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
genomer-0.1.0 genomer-plugin-simple/lib/genomer-plugin-simple.rb
genomer-0.0.10 genomer-plugin-simple/lib/genomer-plugin-simple.rb
genomer-0.0.9 genomer-plugin-simple/lib/genomer-plugin-simple.rb
genomer-0.0.8 genomer-plugin-simple/lib/genomer-plugin-simple.rb
genomer-0.0.7 genomer-plugin-simple/lib/genomer-plugin-simple.rb
genomer-0.0.6 genomer-plugin-simple/lib/genomer-plugin-simple.rb
genomer-0.0.5 genomer-plugin-simple/lib/genomer-plugin-simple.rb