Class: Kosi::Header

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

Overview

Header

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Header

Returns a new instance of Header.



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

def initialize(options)
  @value = options[OptionKeys::HEADER]
end

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



8
9
10
# File 'lib/kosi/header.rb', line 8

def value
  @value
end

Instance Method Details

#empty?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/kosi/header.rb', line 14

def empty?
  @value.nil?
end