module Plugin::Guide::InteractiveMixin

Public Instance Methods

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