Sha256: 1ddc927ed3c25530aef2124eea97c88f29eeb456931f183021e1a2b08eb8db92
Contents?: true
Size: 723 Bytes
Versions: 1
Compression:
Stored size: 723 Bytes
Contents
require 'squib/args/arg_loader' module Squib # @api private module Args class SvgSpecial include ArgLoader def self.parameters { data: nil, id: nil, force_id: false } end def self.expanding_parameters parameters.keys # all of them end def self.params_with_units [] end def validate_id(arg, _i) return nil if arg.nil? arg = '#' << arg unless arg.start_with? '#' arg end # Only render if we have an ID specified, or we are forcing an ID def render?(i) return false if force_id[i] && id[i].to_s.empty? return true end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
squib-0.9.0 | lib/squib/args/svg_special.rb |