Sha256: 6b06f481dfee03b21dfac2820920f5e95e67b7645b79e78fb8f15596a8e47145

Contents?: true

Size: 224 Bytes

Versions: 6

Compression:

Stored size: 224 Bytes

Contents

class DateTime
  alias_method :to_s, :iso8601
end

class Time
  alias_method :to_s, :iso8601
end

class Hash
  def pick(*keys)
    keys = keys.first if keys.first.kind_of? Array
    Hash[keys.zip(values_at(*keys))]
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
grape-gen-0.0.6 template/config/initializers/core_ext.rb
grape-gen-0.0.5 template/config/initializers/core_ext.rb
grape-gen-0.0.4 template/config/initializers/core_ext.rb
grape-gen-0.0.3 template/config/initializers/core_ext.rb
grape-gen-0.0.2 template/config/initializers/core_ext.rb
grape-gen-0.0.1 template/config/initializers/core_ext.rb