Class: SWS::TextComponent
Overview
Represents pure text - component representation of text token. Used to append text tokens from parsed tree to the Response object
Instance Attribute Summary collapse
-
#content ⇒ Object
HTML content.
Attributes inherited from Component
#action_components, #definition_component, #encoding, #html_attrs, #method_to_call, #name, #parameters, #parent, #request, #request_number, #slots, #subcomponents, #tokens
Instance Method Summary collapse
-
#append_to_response(response) ⇒ Object
Appends HTML content to the Response.
Methods inherited from Component
#api_filename, #app, #awake, #container?, #content?, create, #create_component_tree, #definition_filename, #initialize, #page, #perform_action, #process_bindings, #process_parameters, #process_request, #remove_subcomponents, #session, #set_request_subcomponents, #sleep, #slot_bound?, #subcomponent_for_name, synchronize_slot, #synchronize_slot?, #synchronize_slots, #template_filename, #tokenize_binding, #update_binding, #url_string
Constructor Details
This class inherits a constructor from SWS::Component
Instance Attribute Details
#content ⇒ Object
HTML content
533 534 535 |
# File 'lib/sws/component.rb', line 533 def content @content end |
Instance Method Details
#append_to_response(response) ⇒ Object
Appends HTML content to the Response
537 538 539 |
# File 'lib/sws/component.rb', line 537 def append_to_response ( response ) response << @content end |