Sha256: f625a8fb7e0b608c906bde58e5960fe72c2285f45fc2d04a3cc5c3698d4ae82e

Contents?: true

Size: 488 Bytes

Versions: 2

Compression:

Stored size: 488 Bytes

Contents

module EncoderTools
  module Strategies
    class Base
      attr_reader :input_path, :title

      def initialize(input_path)
        @input_path = input_path
      end

      def title=(title)
        case title
        when Options::Title, nil
          @title = title
        when Fixnum
          @title = Options::Title.new(title)
        else
          raise ArgumentError, "expected an #{Options::Title} or #{Fixnum}, got #{title.inspect}"
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
encoder-tools-1.0.0 lib/encoder-tools/strategies/base.rb
encoder-tools-0.0.2 lib/encoder-tools/strategies/base.rb