Sha256: 676d29e5c204f8dd4ecae6bd59f7964d7e4b7107c55181647b26a044887a1576

Contents?: true

Size: 695 Bytes

Versions: 12

Compression:

Stored size: 695 Bytes

Contents

require 'cairo'
require_relative 'arg_loader'
require_relative '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

12 entries across 12 versions & 1 rubygems

Version Path
squib-0.14.3.pre1 lib/squib/args/showcase_special.rb
squib-0.14.1 lib/squib/args/showcase_special.rb
squib-0.14.0 lib/squib/args/showcase_special.rb
squib-0.14.beta1 lib/squib/args/showcase_special.rb
squib-0.13.4 lib/squib/args/showcase_special.rb
squib-0.13.3 lib/squib/args/showcase_special.rb
squib-0.13.2 lib/squib/args/showcase_special.rb
squib-0.13.1 lib/squib/args/showcase_special.rb
squib-0.13.0 lib/squib/args/showcase_special.rb
squib-0.12.0 lib/squib/args/showcase_special.rb
squib-0.11.0 lib/squib/args/showcase_special.rb
squib-0.10.0 lib/squib/args/showcase_special.rb