Sha256: 009478f83fb90894a1691b28c0369fab5a8d37cda04f83b04e2094c6b6ae77dd
Contents?: true
Size: 799 Bytes
Versions: 3
Compression:
Stored size: 799 Bytes
Contents
module MasterView module Directives class Text_area < MasterView::DirectiveBase def stag(dcs) #eat end def etag(dcs) args = parse_attr_value obj = args[0] method = args[1] obj = quote_if(obj) method = quote_if(method) options = {} options[:rows] = attrs_lck['rows'].to_i if attrs_lck['rows'] options[:cols] = attrs_lck['cols'].to_i if attrs_lck['cols'] options.merge! common_html_options(attrs_lck) remove_strings_from_attr_value! merge_hash_attr_value!(0, options) a = [] a << 'text_area '+ obj a << method a << attr_value unless attr_value.strip.empty? self.content='' erb_content(a.join(', ')) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
masterview-0.2.3 | lib/masterview/directives/text_area.rb |
masterview-0.2.4 | lib/masterview/directives/text_area.rb |
masterview-0.2.5 | lib/masterview/directives/text_area.rb |