method
    
    get_unpack
 
  get_unpack(template)
  public
  
    Hide source    
    
      
  
# File lib/resolv.rb, line 1409 def get_unpack(template) len = 0 template.each_byte {|byte| case byte when ?c, ?C len += 1 when ?n len += 2 when ?N len += 4 else raise StandardError.new("unsupported template: '#{byte.chr}' in '#{template}'") end } raise DecodeError.new("limit exceeded") if @limit < @index + len arr = @data.unpack("@#{@index}#{template}") @index += len return arr end

 RSpec
RSpec Ruby on Rails
Ruby on Rails Ruby
Ruby 
   = private
 = private = protected
 = protected
  