Class: MasterView::Directives::Text_area
- Inherits:
-
MasterView::DirectiveBase
- Object
- MasterView::DirectiveBase
- MasterView::Directives::Text_area
- Defined in:
- lib/masterview/directives/text_area.rb
Constant Summary
Constants included from MasterView::DirectiveHelpers
MasterView::DirectiveHelpers::CRLF, MasterView::DirectiveHelpers::ERB_END, MasterView::DirectiveHelpers::ERB_EVAL, MasterView::DirectiveHelpers::ERB_START
Instance Method Summary collapse
Methods inherited from MasterView::DirectiveBase
#append_to_attr_value!, #attr_lckv_matches, #attr_value, #attr_value=, #attrs, #attrs=, #attrs_lck, #attrs_lckv, #common_html_options, #content, #content=, #content_str, #data, #data=, #erb, #erb_content, full_attr_name, #initialize, #merge_hash_attr_value!, #parse_attr_value, #prepend_to_attr_value!, #quote, register_directive, #remove_strings_from_attr_value!, #save_directive_call_stack, #tag_name, #tag_name=
Methods included from MasterView::DirectiveHelpers
#delete_last_in_parent, #find_last_in_parent, #find_string_val_in_string_hash, #lowercase_attribute_keys, #lowercase_attribute_keys_and_values, #merge_into_embedded_hash, #parse, #parse_eval_into_array, #parse_eval_into_hash, #remove_prepended_strings
Methods included from PluginLoadTracking
Constructor Details
This class inherits a constructor from MasterView::DirectiveBase
Instance Method Details
#etag(dcs) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/masterview/directives/text_area.rb', line 9 def etag(dcs) args = parse_attr_value obj = args[0] method = args[1] obj = quote(obj) unless obj =~ /^:|'|"/ method = quote(method) unless method =~ /^:|'|"/ = {} [:rows] = attrs_lck['rows'].to_i if attrs_lck['rows'] [:cols] = attrs_lck['cols'].to_i if attrs_lck['cols'] .merge! (attrs_lck) remove_strings_from_attr_value! merge_hash_attr_value!(0, ) a = [] a << 'text_area '+ obj a << method a << attr_value unless attr_value.strip.empty? self.content='' erb_content(a.join(', ')) end |
#stag(dcs) ⇒ Object
5 6 7 |
# File 'lib/masterview/directives/text_area.rb', line 5 def stag(dcs) #eat end |