Sha256: 88de4a9ae3cb5dc5d5d29372fef9c9c91acc01d2845bf1c61773d5c8c05e0f4f

Contents?: true

Size: 307 Bytes

Versions: 7

Compression:

Stored size: 307 Bytes

Contents

module Styleus
  module Spacable
    extend ActiveSupport::Concern

    module ClassMethods
      def spaces(*collection)
        @spaces ||= []
        return @spaces if collection.empty?
        @spaces.concat(collection).uniq! if collection.respond_to? :to_ary
        @spaces
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
styleus-0.0.10 lib/styleus/spacable.rb
styleus-0.0.9 lib/styleus/spacable.rb
styleus-0.0.8 lib/styleus/spacable.rb
styleus-0.0.7 lib/styleus/spacable.rb
styleus-0.0.6 lib/styleus/spacable.rb
styleus-0.0.5 lib/styleus/spacable.rb
styleus-0.0.4 lib/styleus/spacable.rb