Class: Olelo::Attributes::Attribute::String Private
- Inherits:
-
Olelo::Attributes::Attribute
- Object
- Olelo::Attributes::Attribute
- Olelo::Attributes::Attribute::String
- Defined in:
- lib/olelo/attributes.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary
Attributes inherited from Olelo::Attributes::Attribute
Instance Method Summary collapse
- #field_tag(attr) ⇒ Object private
- #parse(params) ⇒ Object private
Methods inherited from Olelo::Attributes::Attribute
#build_form, #initialize, #label, #label_tag
Methods included from Util
#check, #decode64, #deep_copy, #encode64, #escape, #escape_html, #escape_javascript, included, #md5, #no_cache?, #sha256, #titlecase, #truncate, #unescape, #unescape_backslash, #unescape_html, #valid_xml_chars?
Constructor Details
This class inherits a constructor from Olelo::Attributes::Attribute
Instance Method Details
#field_tag(attr) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
36 37 38 |
# File 'lib/olelo/attributes.rb', line 36 def field_tag(attr) %{<input class="observe" type="text" id="#{key}" name="#{key}" value="#{escape_html attr}"/>} end |
#parse(params) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
40 41 42 43 |
# File 'lib/olelo/attributes.rb', line 40 def parse(params) value = params[key] value if !value.blank? end |