Sha256: 68f36e2efba96387a5f230f2b268e70d58cabbed2d8bddb7bb94996eab46215a
Contents?: true
Size: 842 Bytes
Versions: 24
Compression:
Stored size: 842 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(obj) unless obj =~ /^:|'|"/ method = quote(method) unless 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
24 entries across 24 versions & 2 rubygems