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.11.11 lib/fedux_org_stdlib/core_ext/hash/list.rb
fedux_org-stdlib-0.11.9 lib/fedux_org_stdlib/core_ext/hash/list.rb
fedux_org-stdlib-0.11.8 lib/fedux_org_stdlib/core_ext/hash/list.rb
fedux_org-stdlib-0.11.7 lib/fedux_org_stdlib/core_ext/hash/list.rb
fedux_org-stdlib-0.11.6 lib/fedux_org_stdlib/core_ext/hash/list.rb
fedux_org-stdlib-0.11.5 lib/fedux_org_stdlib/core_ext/hash/list.rb
fedux_org-stdlib-0.11.4 lib/fedux_org_stdlib/core_ext/hash/list.rb
fedux_org-stdlib-0.11.3 lib/fedux_org_stdlib/core_ext/hash/list.rb
fedux_org-stdlib-0.11.2 lib/fedux_org_stdlib/core_ext/hash/list.rb
fedux_org-stdlib-0.11.1 lib/fedux_org_stdlib/core_ext/hash/list.rb
fedux_org-stdlib-0.11.0 lib/fedux_org_stdlib/core_ext/hash/list.rb
fedux_org-stdlib-0.10.9 lib/fedux_org_stdlib/core_ext/hash/list.rb
fedux_org-stdlib-0.10.8 lib/fedux_org_stdlib/core_ext/hash/list.rb
fedux_org-stdlib-0.10.7 lib/fedux_org_stdlib/core_ext/hash/list.rb
fedux_org-stdlib-0.10.6 lib/fedux_org_stdlib/core_ext/hash/list.rb
fedux_org-stdlib-0.10.5 lib/fedux_org_stdlib/core_ext/hash/list.rb
fedux_org-stdlib-0.10.4 lib/fedux_org_stdlib/core_ext/hash/list.rb
fedux_org-stdlib-0.10.3 lib/fedux_org_stdlib/core_ext/hash/list.rb
fedux_org-stdlib-0.10.2 lib/fedux_org_stdlib/core_ext/hash/list.rb
fedux_org-stdlib-0.10.1 lib/fedux_org_stdlib/core_ext/hash/list.rb