Class: Ubill::Footer
- Inherits:
-
Object
- Object
- Ubill::Footer
- Includes:
- Concerns::Configurable
- Defined in:
- lib/ubill/footer.rb
Instance Attribute Summary collapse
-
#lines ⇒ Object
Returns the value of attribute lines.
Instance Method Summary collapse
- #add_line(&block) ⇒ Object
-
#initialize ⇒ Footer
constructor
A new instance of Footer.
Methods included from Concerns::Configurable
Constructor Details
#initialize ⇒ Footer
Returns a new instance of Footer.
9 10 11 |
# File 'lib/ubill/footer.rb', line 9 def initialize self.lines = [] end |
Instance Attribute Details
#lines ⇒ Object
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 |