Class: Fortitude::Widget

Inherits:
Object
  • Object
show all
Includes:
Rails::WidgetMethods, AroundContent, Capturing, Content, Convenience, Doctypes, Files, Helpers, Integration, Localization, ModulesAndSubclasses, Needs, NonRailsWidgetMethods, Rendering, StartAndEndComments, Staticization, TagLikeMethods, Tags, TemporaryOverrides, WidgetClassInheritableAttributes
Defined in:
lib/fortitude/widget.rb,
lib/fortitude/widget/tags.rb,
lib/fortitude/widget/files.rb,
lib/fortitude/widget/needs.rb,
lib/fortitude/widget/content.rb,
lib/fortitude/widget/helpers.rb,
lib/fortitude/widget/doctypes.rb,
lib/fortitude/widget/capturing.rb,
lib/fortitude/widget/rendering.rb,
lib/fortitude/widget/convenience.rb,
lib/fortitude/widget/integration.rb,
lib/fortitude/widget/localization.rb,
lib/fortitude/widget/staticization.rb,
lib/fortitude/widget/around_content.rb,
lib/fortitude/widget/tag_like_methods.rb,
lib/fortitude/widget/temporary_overrides.rb,
lib/fortitude/widget/modules_and_subclasses.rb,
lib/fortitude/widget/start_and_end_comments.rb,
lib/fortitude/widget/non_rails_widget_methods.rb,
lib/fortitude/widget/widget_class_inheritable_attributes.rb

Overview

TODO: rename all non-interface methods as fortitude* TODO: Make ‘element’ vs. ‘tag’ naming consistent TODO: Make naming consistent across enforcement/validation/rules (tag nesting, attributes, ID uniqueness)

Defined Under Namespace

Modules: AroundContent, Capturing, Content, Convenience, Doctypes, Files, Helpers, Integration, Localization, ModulesAndSubclasses, Needs, NonRailsWidgetMethods, Rendering, StartAndEndComments, Staticization, TagLikeMethods, Tags, TemporaryOverrides, WidgetClassInheritableAttributes

Constant Summary

Constants included from Rendering

Rendering::POTENTIAL_NEW_BUFFER_CLASSES

Constants included from Localization

Localization::LOCALIZED_CONTENT_PREFIX

Constants included from Staticization

Staticization::METHODS_TO_DISABLE_WHEN_STATIC

Constants included from TagLikeMethods

TagLikeMethods::CDATA_END, TagLikeMethods::CDATA_START

Constants included from StartAndEndComments

StartAndEndComments::MAX_ASSIGNS_LENGTH_BEFORE_MULTIPLE_LINES, StartAndEndComments::MAX_START_COMMENT_VALUE_STRING_LENGTH, StartAndEndComments::START_COMMENT_EXTRA_INDENT_FOR_NEXT_LINE, StartAndEndComments::START_COMMENT_VALUE_STRING_TOO_LONG_ELLIPSIS

Constants included from Needs

Needs::NOT_PRESENT_NEED, Needs::REQUIRED_NEED

Method Summary

Methods included from NonRailsWidgetMethods

#widget_locale

Methods included from Rails::WidgetMethods

#widget_locale

Methods included from Convenience

#add_css_classes, #content_and_attributes_from_tag_arguments

Methods included from TemporaryOverrides

#with_attribute_rules, #with_element_nesting_rules, #with_id_uniqueness

Methods included from Rendering

#_fortitude_run_content_block, #call_block, #initialize, #output_buffer, #render, #render_to, #rendering_context, #to_html, #widget, #yield_from_widget

Methods included from Capturing

#capture

Methods included from Helpers

#invoke_helper

Methods included from Localization

#_fortitude_t_with_translation_base, #_fortitude_t_without_translation_base, #ttext

Methods included from Content

#content

Methods included from Integration

#_fortitude_allow_helper_even_without_automatic_helper_access?, #_fortitude_target_method_and_args_for_method_missing, #_fortitude_use_helper?, #method_missing, #respond_to?

Methods included from Staticization

#with_staticness_enforced

Methods included from TagLikeMethods

#cdata, #tag_comment, #tag_javascript

Methods included from Doctypes

#doctype, #doctype!

Methods included from Needs

#assign_locals_from, #assigns, #instance_variable_name_for_need, #my_needs_as_hash, #needs_as_hash, #shared_variables, #widget_extra_assigns

Methods included from Tags

#validate_can_enclose!

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Fortitude::Widget::Integration