Method: Interview::Space#build

Defined in:
lib/interview/controls/space.rb

#build(b) ⇒ Object



6
7
8
9
10
11
12
13
14
# File 'lib/interview/controls/space.rb', line 6

def build(b)
  if @style and @style.to_sym == :line
    b << '<hr />'
  elsif @style and @style.to_sym == :break
    b << '<br />'
  else
    b << ' '
  end
end