Sha256: 42ef3e4b870cab063909f80a1106bbde21bf679c2f3c2900fc3708d4adec932d
Contents?: true
Size: 546 Bytes
Versions: 2
Compression:
Stored size: 546 Bytes
Contents
module Nanoc class Plugin class << self attr_accessor :_identifiers end def self.identifiers(*identifiers) self._identifiers = [] unless instance_variable_defined?(:@_identifiers) identifiers.empty? ? self._identifiers || [] : self._identifiers = (self._identifiers || []) + identifiers end def self.identifier(identifier=nil) self._identifiers = [] unless instance_variable_defined?(:@_identifiers) identifier.nil? ? self.identifiers.first : self.identifiers(identifier) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
nanoc-2.0 | lib/nanoc/base/plugin.rb |
nanoc-2.0.1 | lib/nanoc/base/plugin.rb |