Method: Hx::Interop::ContentTypes#encode
- Defined in:
- lib/interop/content_types.rb
#encode(content_type, obj) ⇒ Object
28 29 30 31 32 33 34 |
# File 'lib/interop/content_types.rb', line 28 i[load dump encode encode_to].each do |name| class_eval " def \#{name}(content_type, *args) # def load(content_type, *args)\n delegate content_type, :\#{name}, *args # delegate content_type, :load, *args\n end # end\n RUBY\nend\n", __FILE__, __LINE__ + 1 |