Class: ScbiGo::Header

Inherits:
Object
  • Object
show all
Defined in:
lib/scbi_go/header.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(header) ⇒ Header

Returns a new instance of Header.



6
7
8
# File 'lib/scbi_go/header.rb', line 6

def initialize(header)
	@format_version=header['format-version']
end

Instance Attribute Details

#format_versionObject

Returns the value of attribute format_version.



4
5
6
# File 'lib/scbi_go/header.rb', line 4

def format_version
  @format_version
end

Instance Method Details

#inspectObject



10
11
12
# File 'lib/scbi_go/header.rb', line 10

def inspect
	puts "GO HEADER: #{@format_version}"
end