Sha256: 4d4260f42f37ed2e3e2ec5100511867d7968399bcfed3af29a3ba303301b82f0

Contents?: true

Size: 171 Bytes

Versions: 38

Compression:

Stored size: 171 Bytes

Contents

class String
  def hexlify
    self.b.bytes.map {|c| "%02x" % c.ord}.join
  end

  def unhexlify
    self.chars.each_slice(2).map {|c| c.join.to_i(16).chr}.join
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
ruby_smb-3.3.13 spec/support/bin_helper.rb
ruby_smb-3.3.12 spec/support/bin_helper.rb
ruby_smb-3.3.11 spec/support/bin_helper.rb
ruby_smb-3.3.10 spec/support/bin_helper.rb
ruby_smb-3.3.9 spec/support/bin_helper.rb
ruby_smb-3.3.7 spec/support/bin_helper.rb
ruby_smb-3.3.6 spec/support/bin_helper.rb
ruby_smb-3.3.5 spec/support/bin_helper.rb
ruby_smb-3.3.4 spec/support/bin_helper.rb
ruby_smb-3.3.3 spec/support/bin_helper.rb
ruby_smb-3.3.2 spec/support/bin_helper.rb
ruby_smb-3.3.1 spec/support/bin_helper.rb
ruby_smb-3.3.0 spec/support/bin_helper.rb
ruby_smb-3.2.8 spec/support/bin_helper.rb
ruby_smb-3.2.7 spec/support/bin_helper.rb
ruby_smb-3.2.6 spec/support/bin_helper.rb
ruby_smb-3.2.5 spec/support/bin_helper.rb
ruby_smb-3.2.4 spec/support/bin_helper.rb
ruby_smb-3.2.3 spec/support/bin_helper.rb
ruby_smb-3.2.2 spec/support/bin_helper.rb