class Fakeit::App::Options
Attributes
permissive[R]
use_example[R]
Public Class Methods
new(permissive: false, use_example: false, static: false, static_types: [], static_properties: [])
click to toggle source
# File lib/fakeit/app/options.rb, line 6 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
Public Instance Methods
to_hash()
click to toggle source
# File lib/fakeit/app/options.rb, line 18 def to_hash { permissive: @permissive, use_example: @use_example, static: @static, static_types: @static_types, static_properties: @static_properties } end
use_static?(type: nil, property: nil)
click to toggle source
# File lib/fakeit/app/options.rb, line 14 def use_static?(type: nil, property: nil) @static || @static_types.include?(type) || @static_properties.include?(property) end