Sha256: f2ff132a97b592911989db531f7c07cbea7a1c492af6b01fd1bf805583de7add

Contents?: true

Size: 173 Bytes

Versions: 10

Compression:

Stored size: 173 Bytes

Contents

#
# Parse and unescape AWS policy document string
#
module PolicyStringParser
  def parse_policy
    JSON.parse(CGI.unescape(self))
  rescue StandardError
    nil
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
aws_recon-0.2.27 lib/aws_recon/lib/patch.rb
aws_recon-0.2.26 lib/aws_recon/lib/patch.rb
aws_recon-0.2.25 lib/aws_recon/lib/patch.rb
aws_recon-0.2.24 lib/aws_recon/lib/patch.rb
aws_recon-0.2.23 lib/aws_recon/lib/patch.rb
aws_recon-0.2.22 lib/aws_recon/lib/patch.rb
aws_recon-0.2.21 lib/aws_recon/lib/patch.rb
aws_recon-0.2.20 lib/aws_recon/lib/patch.rb
aws_recon-0.2.19 lib/aws_recon/lib/patch.rb
aws_recon-0.2.18 lib/aws_recon/lib/patch.rb