Sha256: a51c0f5f3f4026377b46dedbc14d0c0ba6fb1fa85200b85ddc91a3f308c1d300

Contents?: true

Size: 678 Bytes

Versions: 2

Compression:

Stored size: 678 Bytes

Contents

module Vedeu

  # Allows the storing of view buffers.
  #
  class Buffers < Repository

    # @return [Vedeu::Buffers]
    def self.buffers
      @buffers ||= reset!
    end

    # @return [Vedeu::Buffers]
    def self.repository
      Vedeu.buffers
    end

    # @return [Vedeu::Buffers]
    def self.reset!
      @buffers = Vedeu::Buffers.register_repository(Vedeu::Buffer)
    end

    # @param name [String] The name of buffer to clear.
    # @return [void]
    def clear(name)
      find!(name).clear
    end

    # @param name [String] The name of buffer to render.
    # @return [void]
    def render(name)
      find!(name).render
    end

  end # Buffers

end # Vedeu

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vedeu-0.4.15 lib/vedeu/repositories/repositories/buffers.rb
vedeu-0.4.14 lib/vedeu/repositories/repositories/buffers.rb