lib/vedeu/interface/interface.rb in vedeu-0.0.8 vs lib/vedeu/interface/interface.rb in vedeu-0.0.9
- old
+ new
@@ -8,20 +8,10 @@
def initial_state
raise NotImplementedError, 'Subclasses implement this method.'
end
- def event_loop
- while true do
- command = input
-
- break if command == :stop
-
- output(command)
- end
- end
-
def input
evaluate
end
def output(command)
@@ -48,10 +38,15 @@
defaults.merge!(@options)
end
def defaults
{
- geometry: {}
+ geometry: {
+ y: 1,
+ x: 1,
+ width: :auto,
+ height: :auto
+ }
}
end
end
end