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.57.1 lib/awspec/ext/array.rb
awspec-0.57.0 lib/awspec/ext/array.rb
awspec-0.56.1 lib/awspec/ext/array.rb
awspec-0.56.0 lib/awspec/ext/array.rb
awspec-0.55.0 lib/awspec/ext/array.rb
awspec-0.54.0 lib/awspec/ext/array.rb
awspec-0.52.4 lib/awspec/ext/array.rb
awspec-0.52.3 lib/awspec/ext/array.rb
awspec-0.52.2 lib/awspec/ext/array.rb
awspec-0.52.1 lib/awspec/ext/array.rb
awspec-0.52.0 lib/awspec/ext/array.rb
awspec-0.51.0 lib/awspec/ext/array.rb
awspec-0.50.0 lib/awspec/ext/array.rb
awspec-0.49.0 lib/awspec/ext/array.rb
awspec-0.48.0 lib/awspec/ext/array.rb
awspec-0.47.0 lib/awspec/ext/array.rb
awspec-0.46.0 lib/awspec/ext/array.rb
awspec-0.45.0 lib/awspec/ext/array.rb
awspec-0.44.0 lib/awspec/ext/array.rb
awspec-0.43.0 lib/awspec/ext/array.rb