class Blur::Commands::CommandLUT
This is a command look-up-table with an autoincrementing index.
Attributes
commands[RW]
Public Class Methods
new()
click to toggle source
# File library/blur/script.rb, line 9 def initialize @index = -1 @commands = {} end
Public Instance Methods
<<(command)
click to toggle source
Inserts the command to the LUT.
@returns the index.
# File library/blur/script.rb, line 17 def << command @commands[command] = @index += 1 @index end