class MotionForm::Section
Attributes
title[R]
Public Class Methods
new(title = '')
click to toggle source
# File lib/project/section/section.rb, line 9 def initialize(title = '') @title = title end
Public Instance Methods
input(key, options = {})
click to toggle source
# File lib/project/section/section.rb, line 13 def input(key, options = {}) rows << TextInputRow.new(key, options) end
rows()
click to toggle source
# File lib/project/section/section.rb, line 25 def rows @rows ||= [] end
text(key, options = {})
click to toggle source
# File lib/project/section/section.rb, line 17 def text(key, options = {}) rows << TextFieldRow.new(key, options) end