stark 0.7.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,27 +0,0 @@
1
- require 'stark/converters'
2
-
3
- module Stark
4
- class Field
5
- def initialize(idx, name, converter)
6
- @index = idx
7
- @name = name
8
- @converter = converter
9
- end
10
-
11
- attr_reader :index, :name, :converter
12
-
13
- def type
14
- @converter.type
15
- end
16
-
17
- def read(ip)
18
- @converter.read ip
19
- end
20
-
21
- def write(op, val)
22
- op.write_field_begin @name, type, @index
23
- @converter.write op, val
24
- op.write_field_end
25
- end
26
- end
27
- end