Class: Publisher
- Inherits:
-
Object
- Object
- Publisher
- Defined in:
- lib/open_ehr/serializer.rb
Instance Method Summary collapse
-
#initialize(serializer) ⇒ Publisher
constructor
A new instance of Publisher.
- #publish(writer) ⇒ Object
Constructor Details
#initialize(serializer) ⇒ Publisher
Returns a new instance of Publisher.
257 258 259 |
# File 'lib/open_ehr/serializer.rb', line 257 def initialize(serializer) @serializer = serializer end |
Instance Method Details
#publish(writer) ⇒ Object
261 262 263 |
# File 'lib/open_ehr/serializer.rb', line 261 def publish(writer) writer.out(@serializer.serialize) end |