Module: PuppetX::Wmflib::ResolveMonkeypatch::InstanceMethods

Defined in:
modules/wmflib/lib/puppet_x/wmflib/monkey_patch.rb

Instance Method Summary collapse

Instance Method Details

#to_sObject



22
23
24
# File 'modules/wmflib/lib/puppet_x/wmflib/monkey_patch.rb', line 22

def to_s
  format("%x:%x:%x:%x:%x:%x:%x:%x", *@address.unpack("nnnnnnnn")).sub(/(^|:)0(:0)+(:|$)/, '::')
end