Module: Algebrick::Serializers2::Chain
- Defined in:
- lib/algebrick/serializers2/abstract.rb
Class Method Summary (collapse)
Instance Method Summary (collapse)
Class Method Details
+ (Object) build(*items)
70 71 72 |
# File 'lib/algebrick/serializers2/abstract.rb', line 70 def self.build(*items) LinkedList.build AbstractConverter # FIXME end |
Instance Method Details
- (Object) call(data, options = {})
74 75 76 77 78 79 80 81 82 |
# File 'lib/algebrick/serializers2/abstract.rb', line 74 def call(data, = {}) converted_data, format = value.call(data, value.in, ) if next? self.next.call converted_data, format, else raise unless format == value.out converted_data end end |