Class: Syskit::GUI::BatchManager::ToString
- Inherits:
- BasicObject
- Defined in:
- lib/syskit/gui/batch_manager.rb
Class Method Summary collapse
Class Method Details
.const_missing(const_name) ⇒ Object
137 138 139 |
# File 'lib/syskit/gui/batch_manager.rb', line 137 def self.const_missing(const_name) ::Object.const_get(const_name) end |
.convert(obj) ⇒ Object
141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 |
# File 'lib/syskit/gui/batch_manager.rb', line 141 def self.convert(obj) if obj.kind_of?(Symbol) ":#{obj}" elsif obj.kind_of?(String) "\"#{obj}\"" else as_string = obj.to_s parser = new begin if parser.instance_eval(as_string) == obj as_string end rescue Exception end end end |