Sha256: 4ea1e72c604f5d7ce37303f5d47aba2361d6b65ab77b7b220041c58e9dedfb85
Contents?: true
Size: 353 Bytes
Versions: 1
Compression:
Stored size: 353 Bytes
Contents
class Gutentag::TagNames def self.call(*names) new(names).call end def initialize(names) @names = names.flatten end def call name_values.collect { |name| Gutentag::TagName.call name } end private attr_reader :names def name_values names.collect { |name| name.respond_to?(:name) ? name.name : name.to_s } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gutentag-0.8.0 | lib/gutentag/tag_names.rb |