Sha256: 5869f4280f756066067db5bcd3dce30cc7c1539362dcba63ad51f985c186dd18
Contents?: true
Size: 794 Bytes
Versions: 7
Compression:
Stored size: 794 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 def to_hash { permissive: @permissive, use_example: @use_example, static: @static, static_types: @static_types, static_properties: @static_properties } end end end end
Version data entries
7 entries across 7 versions & 1 rubygems