module SelfString

Public Instance Methods

len=(length) click to toggle source
# File lib/svi/api.rb, line 36
def len= length
  raise ArgumentError unless length.kind_of? Integer

  @len = length
end
scan_from_svipack(buf) click to toggle source
# File lib/svi/api.rb, line 30
def scan_from_svipack buf
  raise UndefinedError, self unless @len

  [ buf[0..@len-1], buf[@len..-1] ]
end