Module: Context

Included in:
Area
Defined in:
lib/context/header.rb

Instance Method Summary collapse

Instance Method Details

#header(opts) {|head| ... } ⇒ Object

Yields:

  • (head)


2
3
4
5
6
7
8
9
10
11
12
13
# File 'lib/context/header.rb', line 2

def header(opts, &blk)
  head = generate_sub_area(opts.merge(:area => Buffer))
  yield head if block_given?
  head.start_columns(opts) do |a|
    a.column(:width => '25%') { |b|
    }
    a.column(:width => '50%') { |b|
    }
    a.column(:width => '25%') { |b|
    }
  end
end