Methods

Class/Module Index [+]

Quicksearch

Github::Response::Mashify

Public Instance Methods

parse(body) click to toggle source
# File lib/github_api/response/mashify.rb, line 12
def parse(body)
  case body
  when Hash
    self.class.parser.call body
  when Array
    body.map { |item| item.is_a?(Hash) ? self.class.parser.call(item) : item }
  else
    body
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.