Class: HTS::Bcf::HeaderRecord

Inherits:
Object
  • Object
show all
Defined in:
lib/hts/bcf/header_record.rb

Instance Method Summary collapse

Constructor Details

#initialize(native) ⇒ HeaderRecord

Returns a new instance of HeaderRecord.

Raises:

  • (TypeError)


6
7
8
9
10
# File 'lib/hts/bcf/header_record.rb', line 6

def initialize(native)
  raise TypeError, "Invalid argument" unless native.is_a?(Native::BcfHeaderRecordHandle)

  @native = native
end

Instance Method Details

#add_key(key) ⇒ Object



12
# File 'lib/hts/bcf/header_record.rb', line 12

def add_key(key) = @native.add_key(key)

#find_key(key) ⇒ Object



14
# File 'lib/hts/bcf/header_record.rb', line 14

def find_key(key) = @native.find_key(key)

#set_value(index, value, quote: true) ⇒ Object



13
# File 'lib/hts/bcf/header_record.rb', line 13

def set_value(index, value, quote: true) = @native.set_value(index, value, quote)

#to_sObject



15
# File 'lib/hts/bcf/header_record.rb', line 15

def to_s = @native.to_s