Class: Array

Inherits:
Object show all
Includes:
ArrayKeys::ArrayExtensions
Defined in:
lib/sequel/array_keys.rb

Overview

Array extensions.

Instance Attribute Summary

Attributes included from ArrayKeys::ArrayExtensions

#keys

Class Method Summary collapse

Class Method Details

.from_hash(h) ⇒ Object

Converts a hash into an array with keys.



251
252
253
254
# File 'lib/sequel/array_keys.rb', line 251

def self.from_hash(h)
  a = []; a.keys = []
  a.merge!(h)
end