Sha256: 9a997401fc3ee54bf11924ffdf08f13282d8d4e33100dbdaf9d73a7ae554b3f6
Contents?: true
Size: 906 Bytes
Versions: 1
Compression:
Stored size: 906 Bytes
Contents
module MM module Console module SimpleCommand class RuntimeVariables class Value def initialize(name) @name = name end def execute(runtime) if runtime[@name].kind_of?(SelectingList) runtime[:list] = runtime[@name] end runtime[@name] end end include Base def self.keys ['variables', 'v'] end def self.doc(runtime) "show existed runtime variables\n How to set a variable? example: fixed = 'complete fix'\n How to unset a variable? example: fixed = ''\n MM stores most of stuff as variables so that you can easily access them." end def execute(runtime) names = runtime.keys.sort_by{|n|n.to_s} runtime[:list] = SelectingList.new(names, Value) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
xli-mm-0.0.3 | lib/mm/console/simple_command/runtime_variables.rb |