Sha256: 47a85f71e768893afa58a8a3f5fc62be3d979978d3bd939779fe34312455ed39

Contents?: true

Size: 126 Bytes

Versions: 18

Compression:

Stored size: 126 Bytes

Contents

# frozen_string_literal: true

class String
  def htb
    [self].pack('H*')
  end

  def bth
    unpack('H*').first
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
noise-ruby-0.10.1 lib/noise/utils/string.rb
noise-ruby-0.10.0 lib/noise/utils/string.rb
noise-ruby-0.9.4 lib/noise/utils/string.rb
noise-ruby-0.8.4 lib/noise/utils/string.rb
noise-ruby-0.7.4 lib/noise/utils/string.rb
noise-ruby-0.7.3 lib/noise/utils/string.rb
noise-ruby-0.7.1 lib/noise/utils/string.rb
noise-ruby-0.7.0 lib/noise/utils/string.rb
noise-ruby-0.6.3 lib/noise/utils/string.rb
noise-ruby-0.6.2 lib/noise/utils/string.rb
noise-ruby-0.6.1 lib/noise/utils/string.rb
noise-ruby-0.6.0 lib/noise/utils/string.rb
noise-ruby-0.5.3 lib/noise/utils/string.rb
noise-ruby-0.5.2 lib/noise/utils/string.rb
noise-ruby-0.5.1 lib/noise/utils/string.rb
noise-ruby-0.5.0 lib/noise/utils/string.rb
noise-ruby-0.3.0 lib/noise/utils/string.rb
noise-ruby-0.2.0 lib/noise/utils/string.rb