Module: DataMapper::Resource

Defined in:
lib/datamapper4rails/rspec.rb

Instance Method Summary collapse

Instance Method Details

#has_attribute?(name) ⇒ Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/datamapper4rails/rspec.rb', line 4

def has_attribute?(name)
  properties[name] != nil
end