Sha256: 2b28f11e232c8c9a5f2781fca5f4b7179177e431636033577a39739ee3429a9c

Contents?: true

Size: 699 Bytes

Versions: 1

Compression:

Stored size: 699 Bytes

Contents

require 'cairo'
require 'squib/args/arg_loader'
require 'squib/args/dir_validator'

module Squib
  # @api private
  module Args

    class ShowcaseSpecial
      include ArgLoader
      include DirValidator

      def self.parameters
        { scale: 0.85,
          offset: 1.1,
          reflect_offset: 15,
          reflect_percent: 0.25,
          reflect_strength: 0.2,
          face: :left,
        }
      end

      def self.expanding_parameters
        [] # none of them
      end

      def self.params_with_units
        [ :reflect_offset ]
      end

      def face_right?
        @face.to_s.strip.downcase == 'right'
      end

    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
squib-0.9.0 lib/squib/args/showcase_special.rb