Module: SimpleModelView::BuilderHelpers

Included in:
CollectionTableBuilder, CollectionTableRowBuilder, ResourceTableBuilder
Defined in:
lib/simple_model_view/builder_helpers.rb

Instance Method Summary collapse

Instance Method Details

#format(value, type, **options) ⇒ Object



5
6
7
8
9
# File 'lib/simple_model_view/builder_helpers.rb', line 5

def format(value, type, **options)
  return if value.nil?

  formatter.new.call value, type, options
end