Sha256: 6ef9d915381cfee80befdd4a4410fdeb431f1cf9548a5ae586fc65f0fc0b2798
Contents?: true
Size: 553 Bytes
Versions: 2
Compression:
Stored size: 553 Bytes
Contents
require 'singleton' module EncoderTools module Options class Title attr_accessor :number def initialize(number) @number = number end def ==(other) other.is_a?(self.class) && other.number == self.number end def to_args ['--title', number.to_s] end class Longest < Title include Singleton def initialize super(nil) end def to_args %w[--longest] end end LONGEST = Longest.instance end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
encoder-tools-1.0.0 | lib/encoder-tools/options/title.rb |
encoder-tools-0.0.2 | lib/encoder-tools/options/title.rb |