Class: ScbiGo::Header
- Inherits:
-
Object
- Object
- ScbiGo::Header
- Defined in:
- lib/scbi_go/header.rb
Instance Attribute Summary collapse
-
#format_version ⇒ Object
Returns the value of attribute format_version.
Instance Method Summary collapse
-
#initialize(header) ⇒ Header
constructor
A new instance of Header.
- #inspect ⇒ Object
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_version ⇒ Object
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
#inspect ⇒ Object
10 11 12 |
# File 'lib/scbi_go/header.rb', line 10 def inspect puts "GO HEADER: #{@format_version}" end |