lib/ppcurses/actions/GetDataAction.rb in ppcurses-0.0.24 vs lib/ppcurses/actions/GetDataAction.rb in ppcurses-0.0.25

- old
+ new

@@ -27,11 +27,11 @@ def data values = [] @actions.each do |action| - values.push(action.data()) + values.push( action.data ) end values end def create_window @@ -43,32 +43,32 @@ end end end def execute - create_window() + create_window echo - @win.setpos(@win.cury,x_padding()) + @win.setpos(@win.cury, x_padding ) - self.before_actions() + self.before_actions @actions.each do |action| action.execute end - self.after_actions() + self.after_actions noecho @win.clear @win.refresh @win.close end def print_line(string) - @win.setpos(@win.cury(), win_padding()) + @win.setpos(@win.cury, win_padding) @win.addstr(string) - @win.setpos(@win.cury() + 1, win_padding()) + @win.setpos(@win.cury + 1, win_padding) end def print_success_line(string) init_pair(1, COLOR_GREEN, COLOR_BLACK) @win.attron(color_pair(1))