@@ -30,24 +30,24 @@ def initialize source
3030 @created_at = Time . now
3131 if source . is_a? ( Hash ) # Source is a @data Hash
3232 @data = source
33- @buffer = [ ] # initialize empty buffer, indicates a successfull initializing
33+ @buffer = [ ] # initialize empty buffer, indicates a successful initializing
3434 else
3535 @buffer = source
3636 ### DEBUG DEBUG DEBUG RAW STREAM ###############
3737 # if uncommented, the raw-input from the tws is included in the logging
38- # puts "BUFFER :> #{buffer.inspect} "
38+ ## puts "BUFFER :> #{buffer.inspect} "
3939 ### DEBUG DEBUG DEBUG RAW STREAM ###############
4040 @data = Hash . new
4141 self . load
4242 end
4343 end
4444
4545 def valid?
46- @buffer . empty?
46+ @buffer . empty?
4747 end
4848
4949 ## more recent messages omit the transmission of a version
50- ## thus just load the parameter-map
50+ ## thus just load the parameter-map
5151 def simple_load
5252 load_map *self . class . data_map
5353 rescue IB ::Error => e
@@ -87,22 +87,22 @@ def load_map(*map)
8787
8888 when Symbol # Normal map
8989 group , name , type , block =
90- if instruction [ 2 ] . nil? || instruction [ 2 ] . is_a? ( Proc ) # lambda's are Proc's
90+ if instruction [ 2 ] . nil? || instruction [ 2 ] . is_a? ( Proc ) # lambda's are Proc's
9191 [ nil ] + instruction # No group, [ :name, :type, (:block) ]
9292 else
9393 instruction # [ :group, :name, :type, (:block)]
9494 end
9595 begin
9696 data = @buffer . __send__ ( "read_#{ type } " , &block )
9797 rescue IB ::LoadError , NoMethodError => e
98- error "Reading #{ self . class } : #{ e . class } : #{ e . message } --> Instruction: #{ name } " , :reader , false
98+ error "Reading #{ self . class } : #{ e . class } : #{ e . message } --> Instruction: #{ name } " , :reader , false
9999 end
100100 # debug puts data.inspect
101101 if group
102102 @data [ group ] ||= { }
103103 @data [ group ] [ name ] = data
104104 else
105- @data [ name ] = data
105+ @data [ name ] = data
106106 end
107107 else
108108 error "Unrecognized instruction #{ instruction } "
0 commit comments