Class: Panes::Section

Inherits:
Object show all
Defined in:
lib/muflax/panes.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeSection

Returns a new instance of Section.



21
22
23
24
# File 'lib/muflax/panes.rb', line 21

def initialize
  @lines    = []
  @divider  = nil
end

Instance Attribute Details

#dividerObject

Returns the value of attribute divider.



19
20
21
# File 'lib/muflax/panes.rb', line 19

def divider
  @divider
end

#linesObject (readonly)

Returns the value of attribute lines.



18
19
20
# File 'lib/muflax/panes.rb', line 18

def lines
  @lines
end

Instance Method Details

#<<(line) ⇒ Object



26
# File 'lib/muflax/panes.rb', line 26

def <<(line)  ; @lines << line ; end

#empty?Boolean

Returns:

  • (Boolean)


28
# File 'lib/muflax/panes.rb', line 28

def empty?    ; @lines.empty?  ; end

#sizeObject



27
# File 'lib/muflax/panes.rb', line 27

def size      ; @lines.size    ; end