Class: Ubill::Footer

Inherits:
Object
  • Object
show all
Includes:
Concerns::Configurable
Defined in:
lib/ubill/footer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Concerns::Configurable

#configure

Constructor Details

#initializeFooter

Returns a new instance of Footer.



9
10
11
# File 'lib/ubill/footer.rb', line 9

def initialize
  self.lines = []
end

Instance Attribute Details

#linesObject

Returns the value of attribute lines.



7
8
9
# File 'lib/ubill/footer.rb', line 7

def lines
  @lines
end

Instance Method Details

#add_line(&block) ⇒ Object



13
14
15
16
17
# File 'lib/ubill/footer.rb', line 13

def add_line(&block)
  line = Line.new
  line.instance_eval(&block)
  self.lines << line
end