Sha256: 6711dbe22dfc750b98e2dbee92a6c7aa10d0d6b0d1647765d6cc9b05f8e21e31

Contents?: true

Size: 559 Bytes

Versions: 13

Compression:

Stored size: 559 Bytes

Contents

module Fakeit
  module App
    class Options
      attr_reader :permissive, :use_example

      def initialize(permissive: false, use_example: false, static: false, static_types: [], static_properties: [])
        @permissive = permissive
        @use_example = use_example
        @static = static
        @static_types = static_types
        @static_properties = static_properties
      end

      def use_static?(type: nil, property: nil)
        @static || @static_types.include?(type) || @static_properties.include?(property)
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
fakeit-0.6.3 lib/fakeit/app/options.rb
fakeit-0.6.2 lib/fakeit/app/options.rb
fakeit-0.6.1 lib/fakeit/app/options.rb
fakeit-0.6.0 lib/fakeit/app/options.rb
fakeit-0.5.3 lib/fakeit/app/options.rb
fakeit-0.5.2 lib/fakeit/app/options.rb
fakeit-0.5.1 lib/fakeit/app/options.rb
fakeit-0.5.0 lib/fakeit/app/options.rb
fakeit-0.4.2 lib/fakeit/app/options.rb
fakeit-0.4.1 lib/fakeit/app/options.rb
fakeit-0.4.0 lib/fakeit/app/options.rb
fakeit-0.3.1 lib/fakeit/app/options.rb
fakeit-0.3.0 lib/fakeit/app/options.rb