Class: TwitterFriendly::Serializer::Coder
- Inherits:
-
Object
- Object
- TwitterFriendly::Serializer::Coder
- Defined in:
- lib/twitter_friendly/serializer.rb
Class Method Summary collapse
Instance Method Summary collapse
- #encode(obj) ⇒ Object
-
#initialize(coder) ⇒ Coder
constructor
A new instance of Coder.
Constructor Details
#initialize(coder) ⇒ Coder
Returns a new instance of Coder.
46 47 48 |
# File 'lib/twitter_friendly/serializer.rb', line 46 def initialize(coder) @coder = coder end |
Class Method Details
Instance Method Details
#encode(obj) ⇒ Object
50 51 52 |
# File 'lib/twitter_friendly/serializer.rb', line 50 def encode(obj) @coder.dump(obj) end |