class Andromeda::Cmd::Cmd::Parser
Public Instance Methods
on_enter(key, val)
click to toggle source
# File lib/andromeda/cmd.rb, line 231 def on_enter(key, val) data = val[:data].chomp data = JSON::parse(data) cmd = Cmd.new val[:cmd], data, val[:time] rem = val[:comment] rescue nil cmd.with_comment rem if rem exit << cmd if cmd end