Picotest::Double class of PicoRuby
Type aliases
type_t
:stub | :mock | :any_instance_of
double_data_t
{
type: type_t,
any_instance_of: bool,
doubled_obj_id: Integer,
method_id: Symbol?,
return_value: untyped,
singleton_class_name: String?,
?expected_count: Integer,
?actual_count: Integer
}
Singleton methods
_init
Picotest::Double._init(type_t type, untyped untyped, ?any_instance_of: bool) -> Double
Instance methods
remove_singleton
instance.remove_singleton() -> nil
Attr accessors
double_data (accessor)
instance.double_data -> double_data_t
doubled_obj (accessor)
instance.doubled_obj -> untyped
singleton_class_name (accessor)
instance.singleton_class_name -> String