class Inspec::Object::Header
Attributes
header[RW]
Public Class Methods
new(header)
click to toggle source
# File lib/inspec/objects/header.rb, line 7 def initialize(header) @header = header end
Public Instance Methods
to_hash()
click to toggle source
# File lib/inspec/objects/header.rb, line 11 def to_hash { header: header, } end
to_ruby()
click to toggle source
# File lib/inspec/objects/header.rb, line 17 def to_ruby header.inspect.to_s end
to_s()
click to toggle source
# File lib/inspec/objects/header.rb, line 21 def to_s "Header #{header}" end