Sha256: 4d57f320909f54fc896e7c8608c9900c32376b69c301910e07f62945f8f6b5de
Contents?: true
Size: 570 Bytes
Versions: 2
Compression:
Stored size: 570 Bytes
Contents
module VerifiedDouble class SimpleDouble attr_reader :internal def initialize(internal) @internal = internal end def build_recorded_method_signature(method) RecordedMethodSignature.new( class_name: class_name, method_operator: method_operator, method: method.to_s) end def class_name class_double? ? internal.name : internal.instance_variable_get('@name') end def class_double? internal.is_a?(Class) end def method_operator class_double? ? '.' : '#' end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
verified_double-0.4.1 | lib/verified_double/simple_double.rb |
verified_double-0.4.0 | lib/verified_double/simple_double.rb |