class SheepAst::NextCommand
Get next command
Public Class Methods
command_array(array)
click to toggle source
# File lib/sheep_ast/messages.rb, line 24 def self.command_array(array) arr = [] array.each do |elem| arr << elem.command end return arr end
desc_array(array)
click to toggle source
# File lib/sheep_ast/messages.rb, line 32 def self.desc_array(array) arr = [] array.each do |elem| arr << elem.description end return arr end
Public Instance Methods
init()
click to toggle source
# File lib/sheep_ast/messages.rb, line 19 def init @command = nil @description = nil end