Class: Samovar::Output::Header

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, object) ⇒ Header

Returns a new instance of Header.



24
25
26
27
# File 'lib/samovar/output/header.rb', line 24

def initialize(name, object)
	@name = name
	@object = object
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



29
30
31
# File 'lib/samovar/output/header.rb', line 29

def name
  @name
end

#objectObject (readonly)

Returns the value of attribute object.



30
31
32
# File 'lib/samovar/output/header.rb', line 30

def object
  @object
end

Instance Method Details

#align(columns) ⇒ Object



32
33
34
# File 'lib/samovar/output/header.rb', line 32

def align(columns)
	@object.command_line(@name)
end