Class: Object

### Home Classes Methods

### In Files

- lib/dm-do-adapter/spec/shared_spec.rb

### Parent

BasicObject

### Methods

- #log_output
- #reset_log
- #supports_default_values?
- #supports_returning?

### Files

- LICENSE
- README.rdoc

### Class/Module Index

Quicksearch

- DataMapper
- DataMapper::Adapters
- DataMapper::Adapters::DataObjectsAdapter
- Article
- Author
- Object
- Publisher

No matching classes.

# Object

### Public Instance Methods

log_output() click to toggle source

    # File lib/dm-do-adapter/spec/shared_spec.rb, line 30
    def log_output
      @log.rewind
      output = @log.read
      output.chomp!
      output.gsub!(/\A\s+~ \(\d+[\.,]?\d*\)\s+/, '')
      output.gsub!(/\Acom\.\w+\.jdbc\.JDBC4PreparedStatement@[^:]+:\s+/, '') if @jruby
      output.split($/)
    end

reset_log() click to toggle source

    # File lib/dm-do-adapter/spec/shared_spec.rb, line 25
    def reset_log
      @log.truncate(0)
      @log.rewind
    end

supports_default_values?() click to toggle source

    # File lib/dm-do-adapter/spec/shared_spec.rb, line 39
    def supports_default_values?
      @adapter.send(:supports_default_values?)
    end

supports_returning?() click to toggle source

    # File lib/dm-do-adapter/spec/shared_spec.rb, line 43
    def supports_returning?
      @adapter.send(:supports_returning?)
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.