Sha256: ddfa963e4db34567227a84604c1d81edacd11b93d4d198d254c41197fcdd416e
Contents?: true
Size: 755 Bytes
Versions: 1
Compression:
Stored size: 755 Bytes
Contents
module Vedeu class Application class << self def start(interfaces = nil, options = {}, &block) new(interfaces, options).start(&block) end end def initialize(interfaces = nil, options = {}) @interfaces, @options = interfaces, options end def start(&block) if block_given? else Terminal.open(options) do initial_state Process.event_loop end end ensure Terminal.close end private attr_reader :options def initial_state interfaces.initial end def interfaces @interfaces ||= Interfaces.default end def options defaults.merge!(@options) end def defaults {} end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vedeu-0.0.4 | lib/vedeu/application.rb |