Class: CafeCar::Table::FootBuilder
Instance Attribute Summary
Attributes inherited from Builder
#ui
Instance Method Summary
collapse
#model, #policy
Methods inherited from Builder
#has?, #html_safe?, #logo, #model_name, #remaining, #remaining_attributes, #shown, #shown!, #timestamp_attribute, #timestamps, #title, #to_s, #~@
#assign_option!, #assign_options!, #get_options
#call_procs!, #clone_or_call!
Constructor Details
Returns a new instance of FootBuilder.
3
4
5
6
|
# File 'lib/cafe_car/table/foot_builder.rb', line 3
def initialize(...)
super
@count = 0
end
|
Instance Method Details
#cell ⇒ Object
9
|
# File 'lib/cafe_car/table/foot_builder.rb', line 9
def cell(...) = (super; cell!)
|
#cell! ⇒ Object
8
|
# File 'lib/cafe_car/table/foot_builder.rb', line 8
def cell! = (@count += 1; nil)
|
#controls ⇒ Object
10
|
# File 'lib/cafe_car/table/foot_builder.rb', line 10
def controls(...) = cell!
|
#to_html ⇒ Object
12
|
# File 'lib/cafe_car/table/foot_builder.rb', line 12
def to_html = ""
|