Sha256: 9e5b9971a6a71a8af4bb5ff8b0c1432b26b118c6dc3f619a4264ab6f3410c5c4

Contents?: true

Size: 486 Bytes

Versions: 7

Compression:

Stored size: 486 Bytes

Contents

module Vedeu
  class Application
    class << self
      def start(options = {})
        new(options).start
      end
    end

    def initialize(options = {})
      @options = options
    end

    def start
      Terminal.open(options) do
        Output.render

        EventLoop.main_sequence
      end
    ensure
      Terminal.close
    end

    private

    attr_reader :options

    def options
      defaults.merge!(@options)
    end

    def defaults
      {}
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
vedeu-0.0.24 lib/vedeu/application.rb
vedeu-0.0.23 lib/vedeu/application.rb
vedeu-0.0.22 lib/vedeu/application.rb
vedeu-0.0.21 lib/vedeu/application.rb
vedeu-0.0.20 lib/vedeu/application.rb
vedeu-0.0.19 lib/vedeu/application.rb
vedeu-0.0.18 lib/vedeu/application.rb