Sha256: 21655f3e4db036562b5fbeb0ee2c438e77010d2b18599d0de5d72f62849729bb
Contents?: true
Size: 322 Bytes
Versions: 1
Compression:
Stored size: 322 Bytes
Contents
require 'netaddr' module Convection module Model module Mixin ## # Add condition helpers ## module CIDRBlock def network(*args) @network = NetAddr::CIDR.create(*args) unless args.empty? property('CidrBlock', @network.to_s) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
convection-0.0.1 | lib/convection/model/mixin/cidr_block.rb |