Sha256: ce91067fc1ccae47045683af035880a580cdb41d80512cda0cdd36b981cae6fa

Contents?: true

Size: 266 Bytes

Versions: 50

Compression:

Stored size: 266 Bytes

Contents

# encoding: utf-8
require 'fedux_org_stdlib/core_ext/array/list'

# Hash
class Hash
  # Convert Hash to list
  #
  # @return [String]
  #   A string representation of hash as list
  def to_list
    map { |key, value| format('%s: %s', key, value) }.to_list
  end
end

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
fedux_org-stdlib-0.10.0 lib/fedux_org_stdlib/core_ext/hash/list.rb
fedux_org-stdlib-0.9.8 lib/fedux_org_stdlib/core_ext/hash/list.rb
fedux_org-stdlib-0.9.7 lib/fedux_org_stdlib/core_ext/hash/list.rb
fedux_org-stdlib-0.9.6 lib/fedux_org_stdlib/core_ext/hash/list.rb
fedux_org-stdlib-0.9.5 lib/fedux_org_stdlib/core_ext/hash/list.rb
fedux_org-stdlib-0.9.4 lib/fedux_org_stdlib/core_ext/hash/list.rb
fedux_org-stdlib-0.9.2 lib/fedux_org_stdlib/core_ext/hash/list.rb
fedux_org-stdlib-0.9.1 lib/fedux_org_stdlib/core_ext/hash/list.rb
fedux_org-stdlib-0.9.0 lib/fedux_org_stdlib/core_ext/hash/list.rb
fedux_org-stdlib-0.8.11 lib/fedux_org_stdlib/core_ext/hash/list.rb
fedux_org-stdlib-0.8.10 lib/fedux_org_stdlib/core_ext/hash/list.rb
fedux_org-stdlib-0.8.9 lib/fedux_org_stdlib/core_ext/hash/list.rb
fedux_org-stdlib-0.8.8 lib/fedux_org_stdlib/core_ext/hash/list.rb
fedux_org-stdlib-0.8.7 lib/fedux_org_stdlib/core_ext/hash/list.rb
fedux_org-stdlib-0.8.6 lib/fedux_org_stdlib/core_ext/hash/list.rb
fedux_org-stdlib-0.8.5 lib/fedux_org_stdlib/core_ext/hash/list.rb
fedux_org-stdlib-0.8.4 lib/fedux_org_stdlib/core_ext/hash/list.rb
fedux_org-stdlib-0.8.3 lib/fedux_org_stdlib/core_ext/hash/list.rb
fedux_org-stdlib-0.8.0 lib/fedux_org_stdlib/core_ext/hash/list.rb
fedux_org-stdlib-0.7.33 lib/fedux_org_stdlib/core_ext/hash/list.rb