Module: Voom::Presenters

Defined in:
lib/voom/presenters/app.rb,
lib/voom/presenters/cli.rb,
lib/voom/presenters/router.rb,
lib/voom/presenters/api/app.rb,
lib/voom/presenters/helpers.rb,
lib/voom/presenters/plugins.rb,
lib/voom/presenters/version.rb,
lib/voom/presenters/registry.rb,
lib/voom/presenters/settings.rb,
lib/voom/presenters/demo/echo.rb,
lib/voom/presenters/demo/slow.rb,
lib/voom/presenters/namespace.rb,
lib/voom/presenters/pluggable.rb,
lib/voom/presenters/api/router.rb,
lib/voom/presenters/demo/search.rb,
lib/voom/presenters/dsl/definer.rb,
lib/voom/presenters/dsl/lockable.rb,
lib/voom/presenters/helpers/date.rb,
lib/voom/presenters/helpers/time.rb,
lib/voom/presenters/helpers/rails.rb,
lib/voom/presenters/helpers/route.rb,
lib/voom/presenters/container_item.rb,
lib/voom/presenters/dsl/definition.rb,
lib/voom/presenters/helpers/errors.rb,
lib/voom/presenters/helpers/redact.rb,
lib/voom/presenters/web_client/app.rb,
lib/voom/presenters/demo/dragon_drop.rb,
lib/voom/presenters/generators/plugin.rb,
lib/voom/presenters/helpers/inflector.rb,
lib/voom/presenters/web_client/router.rb,
lib/voom/presenters/dsl/user_interface.rb,
lib/voom/presenters/errors/invalid_dsl.rb,
lib/voom/presenters/dsl/components/base.rb,
lib/voom/presenters/dsl/components/card.rb,
lib/voom/presenters/dsl/components/chip.rb,
lib/voom/presenters/dsl/components/form.rb,
lib/voom/presenters/dsl/components/grid.rb,
lib/voom/presenters/dsl/components/icon.rb,
lib/voom/presenters/dsl/components/list.rb,
lib/voom/presenters/dsl/components/menu.rb,
lib/voom/presenters/dsl/components/page.rb,
lib/voom/presenters/plugins/google_maps.rb,
lib/voom/presenters/dsl/components/badge.rb,
lib/voom/presenters/dsl/components/event.rb,
lib/voom/presenters/dsl/components/image.rb,
lib/voom/presenters/dsl/components/input.rb,
lib/voom/presenters/dsl/components/table.rb,
lib/voom/presenters/errors/unprocessable.rb,
lib/voom/presenters/dsl/components/avatar.rb,
lib/voom/presenters/dsl/components/button.rb,
lib/voom/presenters/dsl/components/dialog.rb,
lib/voom/presenters/dsl/components/drawer.rb,
lib/voom/presenters/dsl/components/footer.rb,
lib/voom/presenters/dsl/components/header.rb,
lib/voom/presenters/dsl/components/select.rb,
lib/voom/presenters/dsl/components/slider.rb,
lib/voom/presenters/dsl/components/switch.rb,
lib/voom/presenters/dsl/invalid_presenter.rb,
lib/voom/presenters/generators/inflectors.rb,
lib/voom/presenters/web_client/custom_css.rb,
lib/voom/presenters/dsl/components/chipset.rb,
lib/voom/presenters/dsl/components/content.rb,
lib/voom/presenters/dsl/components/stepper.rb,
lib/voom/presenters/dsl/components/tab_bar.rb,
lib/voom/presenters/dsl/components/tooltip.rb,
lib/voom/presenters/helpers/rails/currency.rb,
lib/voom/presenters/dsl/components/checkbox.rb,
lib/voom/presenters/dsl/components/progress.rb,
lib/voom/presenters/dsl/components/snackbar.rb,
lib/voom/presenters/dsl/components/icon_base.rb,
lib/voom/presenters/dsl/components/separator.rb,
lib/voom/presenters/dsl/components/text_area.rb,
lib/voom/presenters/dsl/protect_from_forgery.rb,
lib/voom/presenters/dsl/components/date_field.rb,
lib/voom/presenters/dsl/components/event_base.rb,
lib/voom/presenters/dsl/components/file_input.rb,
lib/voom/presenters/dsl/components/image_list.rb,
lib/voom/presenters/dsl/components/lists/line.rb,
lib/voom/presenters/dsl/components/page_title.rb,
lib/voom/presenters/dsl/components/text_field.rb,
lib/voom/presenters/dsl/components/time_field.rb,
lib/voom/presenters/dsl/components/typography.rb,
lib/voom/presenters/helpers/rails/model_table.rb,
lib/voom/presenters/web_client/plugin_headers.rb,
lib/voom/presenters/dsl/components/icon_toggle.rb,
lib/voom/presenters/dsl/components/toggle_base.rb,
lib/voom/presenters/dsl/components/actions/base.rb,
lib/voom/presenters/dsl/components/hidden_field.rb,
lib/voom/presenters/dsl/components/lists/action.rb,
lib/voom/presenters/dsl/components/lists/header.rb,
lib/voom/presenters/dsl/components/mixins/chips.rb,
lib/voom/presenters/dsl/components/mixins/event.rb,
lib/voom/presenters/dsl/components/mixins/grids.rb,
lib/voom/presenters/dsl/components/mixins/icons.rb,
lib/voom/presenters/dsl/components/mixins/menus.rb,
lib/voom/presenters/dsl/components/multi_select.rb,
lib/voom/presenters/dsl/components/number_field.rb,
lib/voom/presenters/dsl/components/radio_button.rb,
lib/voom/presenters/errors/parameter_validation.rb,
lib/voom/presenters/dsl/components/actions/clear.rb,
lib/voom/presenters/dsl/components/actions/loads.rb,
lib/voom/presenters/dsl/components/actions/posts.rb,
lib/voom/presenters/dsl/components/datetime_base.rb,
lib/voom/presenters/dsl/components/lists/actions.rb,
lib/voom/presenters/dsl/components/mixins/append.rb,
lib/voom/presenters/dsl/components/mixins/avatar.rb,
lib/voom/presenters/dsl/components/mixins/common.rb,
lib/voom/presenters/dsl/components/mixins/images.rb,
lib/voom/presenters/dsl/components/mixins/tables.rb,
lib/voom/presenters/dsl/components/actions/dialog.rb,
lib/voom/presenters/dsl/components/actions/remove.rb,
lib/voom/presenters/dsl/components/datetime_field.rb,
lib/voom/presenters/dsl/components/mixins/buttons.rb,
lib/voom/presenters/dsl/components/mixins/chipset.rb,
lib/voom/presenters/dsl/components/mixins/content.rb,
lib/voom/presenters/dsl/components/mixins/dialogs.rb,
lib/voom/presenters/dsl/components/mixins/helpers.rb,
lib/voom/presenters/dsl/components/mixins/padding.rb,
lib/voom/presenters/dsl/components/mixins/selects.rb,
lib/voom/presenters/dsl/components/mixins/sliders.rb,
lib/voom/presenters/dsl/components/mixins/toggles.rb,
lib/voom/presenters/dsl/components/rich_text_area.rb,
lib/voom/presenters/dsl/components/unordered_list.rb,
lib/voom/presenters/web_client/component_renderer.rb,
lib/voom/presenters/dsl/components/actions/deletes.rb,
lib/voom/presenters/dsl/components/actions/stepper.rb,
lib/voom/presenters/dsl/components/actions/updates.rb,
lib/voom/presenters/dsl/components/expansion_panel.rb,
lib/voom/presenters/dsl/components/lists/separator.rb,
lib/voom/presenters/dsl/components/mixins/attaches.rb,
lib/voom/presenters/dsl/components/mixins/progress.rb,
lib/voom/presenters/dsl/components/mixins/steppers.rb,
lib/voom/presenters/dsl/components/mixins/tab_bars.rb,
lib/voom/presenters/dsl/components/mixins/tooltips.rb,
lib/voom/presenters/dsl/components/mixins/yield_to.rb,
lib/voom/presenters/plugins/google_maps/google_map.rb,
lib/voom/presenters/dsl/components/actions/replaces.rb,
lib/voom/presenters/dsl/components/actions/snackbar.rb,
lib/voom/presenters/dsl/components/mixins/snackbars.rb,
lib/voom/presenters/dsl/components/actions/navigates.rb,
lib/voom/presenters/dsl/components/mixins/typography.rb,
lib/voom/presenters/dsl/components/mixins/file_inputs.rb,
lib/voom/presenters/dsl/components/mixins/google_maps.rb,
lib/voom/presenters/dsl/components/mixins/image_lists.rb,
lib/voom/presenters/dsl/components/mixins/text_fields.rb,
lib/voom/presenters/dsl/components/actions/autocomplete.rb,
lib/voom/presenters/dsl/components/actions/close_dialog.rb,
lib/voom/presenters/dsl/components/actions/post_message.rb,
lib/voom/presenters/dsl/components/mixins/last_response.rb,
lib/voom/presenters/web_client/component_html_decorator.rb,
lib/voom/presenters/dsl/components/actions/prompt_if_dirty.rb,
lib/voom/presenters/dsl/components/actions/toggle_disabled.rb,
lib/voom/presenters/dsl/components/mixins/date_time_fields.rb,
lib/voom/presenters/dsl/components/mixins/expansion_panels.rb,
lib/voom/presenters/web_client/component_decorator_factory.rb,
lib/voom/presenters/dsl/components/actions/toggle_visibility.rb

Defined Under Namespace

Modules: Api, DSL, Demo, Errors, Generators, Helpers, Namespace, Pluggable, Plugins, Version, WebClient Classes: App, Cli, ContainerItem, Generate, Registry, Router, Settings, SubCommandBase

Class Method Summary collapse

Class Method Details

.define(name, namespace: nil, options: {}, &block) ⇒ Object



55
56
57
58
59
60
61
# File 'lib/voom/presenters/registry.rb', line 55

def self.define(name, namespace: nil, options: {}, &block)
  unless namespace
    namespace = name.to_s.split(':')
    name = namespace.pop
  end
  Registry.define(name, namespace, options, &block)
end