class PM::CodeKey
A CodeKey
holds a CodeChunk
and remembers what key it is assigned to.
Attributes
code_chunk[RW]
key[RW]
Public Class Methods
new(key, code_chunk)
click to toggle source
# File lib/patchmaster/code_key.rb, line 8 def initialize(key, code_chunk) @key, @code_chunk = key, code_chunk end
Public Instance Methods
run()
click to toggle source
# File lib/patchmaster/code_key.rb, line 12 def run @code_chunk.run end