Class: CafeCar::Table::FootBuilder

Inherits:
ObjectsBuilder show all
Defined in:
lib/cafe_car/table/foot_builder.rb

Instance Attribute Summary

Attributes inherited from Builder

#ui

Instance Method Summary collapse

Methods inherited from ObjectsBuilder

#model, #policy

Methods inherited from Builder

#has?, #html_safe?, #logo, #model_name, #remaining, #remaining_attributes, #shown, #shown!, #timestamp_attribute, #timestamps, #title, #to_s, #~@

Methods included from OptionHelpers

#assign_option!, #assign_options!, #get_options

Methods included from ProcHelpers

#call_procs!, #clone_or_call!

Constructor Details

#initializeFootBuilder

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

#cellObject



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)

#controlsObject



10
# File 'lib/cafe_car/table/foot_builder.rb', line 10

def controls(...)   = cell!

#to_htmlObject



12
# File 'lib/cafe_car/table/foot_builder.rb', line 12

def to_html = ""