module Xenon::Marshaller
Public Instance Methods
content_type()
click to toggle source
# File lib/xenon/marshallers.rb, line 5 def content_type media_type.with_charset(Encoding::UTF_8) end
marshal?(media_range)
click to toggle source
# File lib/xenon/marshallers.rb, line 13 def marshal?(media_range) media_range =~ media_type end
unmarshal?(media_type)
click to toggle source
# File lib/xenon/marshallers.rb, line 9 def unmarshal?(media_type) media_type == self.media_type end