Sha256: c741f7faec8eab22c010ce88d33ab2d7348051b413ea6d255eab6f29c81b5ed1

Contents?: true

Size: 255 Bytes

Versions: 34

Compression:

Stored size: 255 Bytes

Contents

class Symbol

  case instance_methods.first
  when Symbol
    def flexmock_as_name
      self
    end

  when String
    def flexmock_as_name
      to_s
    end

  else
    fail "Unexpected class for method list #{instance_methods.first.class}"
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
flexmock-2.4.2 lib/flexmock/symbol_extensions.rb
flexmock-3.0.1 lib/flexmock/symbol_extensions.rb
flexmock-2.4.1 lib/flexmock/symbol_extensions.rb
flexmock-3.0.0 lib/flexmock/symbol_extensions.rb
flexmock-2.4.0 lib/flexmock/symbol_extensions.rb
flexmock-2.3.8 lib/flexmock/symbol_extensions.rb
flexmock-2.3.6 lib/flexmock/symbol_extensions.rb
flexmock-2.3.5 lib/flexmock/symbol_extensions.rb
flexmock-2.3.4 lib/flexmock/symbol_extensions.rb
flexmock-2.3.3 lib/flexmock/symbol_extensions.rb
flexmock-2.3.2 lib/flexmock/symbol_extensions.rb
flexmock-2.3.1 lib/flexmock/symbol_extensions.rb
flexmock-2.3.0 lib/flexmock/symbol_extensions.rb
flexmock-2.2.1 lib/flexmock/symbol_extensions.rb
flexmock-2.2.0 lib/flexmock/symbol_extensions.rb
flexmock-2.1.0 lib/flexmock/symbol_extensions.rb
flexmock-2.0.6 lib/flexmock/symbol_extensions.rb
flexmock-2.0.5 lib/flexmock/symbol_extensions.rb
flexmock-2.0.4 lib/flexmock/symbol_extensions.rb
flexmock-2.0.3 lib/flexmock/symbol_extensions.rb