Class: Simple::Marshal::Buf

Inherits:
Struct
  • Object
show all
Defined in:
lib/appswarm/simple_marshal.rb,
lib/appswarm/simple_marshal.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#posObject

Returns the value of attribute pos

Returns:

  • (Object)

    the current value of pos



50
51
52
# File 'lib/appswarm/simple_marshal.rb', line 50

def pos
  @pos
end

#strObject

Returns the value of attribute str

Returns:

  • (Object)

    the current value of str



50
51
52
# File 'lib/appswarm/simple_marshal.rb', line 50

def str
  @str
end

Instance Method Details

#bufObject



53
54
55
# File 'lib/appswarm/simple_marshal.rb', line 53

def buf
  str[pos..-1]
end