Sha256: 4ea1e1b61a1ed94c86cdd3ef63ccd22e66a074f09573e30264be6e73a2d065df
Contents?: true
Size: 843 Bytes
Versions: 24
Compression:
Stored size: 843 Bytes
Contents
module MasterView module Directives class Password_field < 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[:size] = attrs_lck['size'].to_i if attrs_lck['size'] options[:maxlength] = attrs_lck['maxlength'].to_i if attrs_lck['maxlength'] options.merge! common_html_options(attrs_lck) remove_strings_from_attr_value! merge_hash_attr_value!(0, options) a = [] a << 'password_field '+ obj a << method a << attr_value unless attr_value.strip.empty? erb_content(a.join(', ')) end end end end
Version data entries
24 entries across 24 versions & 2 rubygems