module Plugin::ChangeAccount::InteractiveMixin

Public Instance Methods

next() click to toggle source
Calls superclass method
# File core/plugin/change_account/interactive.rb, line 17
def next
  super(&Proc.new).extend(InteractiveMixin) end
say(message, choose = {Plugin[:change_account]._('次へ') => nil}) click to toggle source
# File core/plugin/change_account/interactive.rb, line 4
def say(message, choose = {Plugin[:change_account]._('次へ') => nil})
  self.next {
    promise = Deferred.new(true).extend(InteractiveMixin)
    Plugin.call(:update, nil,
                [Mikutter::System::Message.new(description: message,
                                               source: "change_account",
                                               created: Time.now,
                                               confirm: choose,
                                               confirm_callback: promise)])
    promise
  }
end
trap() click to toggle source
Calls superclass method
# File core/plugin/change_account/interactive.rb, line 20
def trap
  super(&Proc.new).extend(InteractiveMixin) end