Sha256: 66c13db3b92c4a7eda285942a9275e2c13cef7dbef153c974f699669d63cb6bb

Contents?: true

Size: 200 Bytes

Versions: 178

Compression:

Stored size: 200 Bytes

Contents

class Array
  def single_resource(id = nil)
    if self.count > 1
      raise Awspec::DuplicatedResourceTypeError, "Duplicated resource type #{id}"
    end
    self.first if self.count == 1
  end
end

Version data entries

178 entries across 178 versions & 4 rubygems

Version Path
awspec-0.79.1 lib/awspec/ext/array.rb
awspec-0.79.0 lib/awspec/ext/array.rb
awspec-0.78.1 lib/awspec/ext/array.rb
awspec-0.77.1 lib/awspec/ext/array.rb
awspec-0.77.0 lib/awspec/ext/array.rb
awspec-0.76.1 lib/awspec/ext/array.rb
awspec-0.76.0 lib/awspec/ext/array.rb
awspec-0.75.2 lib/awspec/ext/array.rb
awspec-0.75.1 lib/awspec/ext/array.rb
awspec-0.75.0 lib/awspec/ext/array.rb
awspec-0.74.1 lib/awspec/ext/array.rb
awspec-0.74.0 lib/awspec/ext/array.rb
awspec-0.73.2 lib/awspec/ext/array.rb
awspec-0.73.1 lib/awspec/ext/array.rb
awspec-0.73.0 lib/awspec/ext/array.rb
awspec-0.72.0 lib/awspec/ext/array.rb
awspec-0.71.0 lib/awspec/ext/array.rb
awspec-0.70.0 lib/awspec/ext/array.rb
awspec-0.69.1 lib/awspec/ext/array.rb
awspec-0.69.0 lib/awspec/ext/array.rb