Sha256: 9bf1384fad0ae998ebb13adf6be0ecceba4c396d52286c72bcea780c1860a6fd

Contents?: true

Size: 495 Bytes

Versions: 1

Compression:

Stored size: 495 Bytes

Contents

require 'amun/object'
require 'amun/helpers/colors'
require 'amun/behaviours/emacs'

module Amun
  module MajorModes
    # Basic mode with emacs defaults
    class Fundamental < Object
      include Behaviours::Emacs

      def initialize(buffer)
        super()
        self.buffer = buffer

        emacs_behaviour_initialize
        read_io if buffer.empty?
      end

      private

      attr_accessor :buffer

      def read_io
        buffer << buffer.io.read
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
amun-0.2.0 lib/amun/major_modes/fundamental.rb