class Card::Format::JsonFormat

Public Instance Methods

expand_stubs(content) click to toggle source
Calls superclass method
# File lib/card/format/json_format.rb, line 11
def expand_stubs content
  case content
  when Hash
    content.each { |k, v| content[k] = expand_stubs v }
  when Array
    content.map { |item| expand_stubs item }
  else
    super
  end
end
mime_type() click to toggle source
# File lib/card/format/json_format.rb, line 7
def mime_type
  "text/json"
end