Sha256: 5e8bc71d3975c4d244d29298c41893e791f1f27bfa272fbf44d0f18161e82793
Contents?: true
Size: 382 Bytes
Versions: 1
Compression:
Stored size: 382 Bytes
Contents
module Swagger module V2 class Example extend Forwardable def_delegator :@raw, :to_s, :inspect attr_reader :raw def initialize(sample) @raw = sample end def parse(_format = :json) return @raw unless @raw.is_a? String JSON.parse(@raw) end def inspect @raw.inspect end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
swagger-core-0.2.0 | lib/swagger/v2/example.rb |