Module: Cell::ViewModel::Helpers

Included in:
Cell::ViewModel
Defined in:
lib/cell/view_model.rb

Instance Method Summary collapse

Instance Method Details

#cell(name, *args, &block) ⇒ Object

Constantizes name, call builders and returns instance.



38
39
40
# File 'lib/cell/view_model.rb', line 38

def cell(name, *args, &block) # classic Rails fuzzy API.
  class_from_cell_name(name).(*args, &block)
end