Class: Smi::Config
- Inherits:
-
Object
- Object
- Smi::Config
- Defined in:
- lib/smi/config.rb
Class Method Summary collapse
- .error_level=(level) ⇒ Object
- .exit ⇒ Object
- .get_flags ⇒ Object
- .get_path ⇒ Object
- .init(name = nil) ⇒ Object
- .is_loaded?(m) ⇒ Boolean
- .load_module(m) ⇒ Object
- .read_config(filename, tag) ⇒ Object
- .set_error_handler(&block) ⇒ Object
- .set_flags(flags) ⇒ Object
- .set_path(p) ⇒ Object
- .set_severity(pattern, severity) ⇒ Object
Class Method Details
.error_level=(level) ⇒ Object
12 13 14 |
# File 'lib/smi/config.rb', line 12 def error_level=(level) Wrapper.setSmiErrorLevel(level) end |
.exit ⇒ Object
8 9 10 |
# File 'lib/smi/config.rb', line 8 def exit Wrapper.smiExit end |
.get_flags ⇒ Object
19 20 21 |
# File 'lib/smi/config.rb', line 19 def get_flags Wrapper.smiGetFlags() end |
.get_path ⇒ Object
15 16 17 |
# File 'lib/smi/config.rb', line 15 def get_path Wrapper.smiGetPath() end |
.init(name = nil) ⇒ Object
4 5 6 |
# File 'lib/smi/config.rb', line 4 def init(name = nil) Wrapper.smiInit(name) end |
.is_loaded?(m) ⇒ Boolean
31 32 33 |
# File 'lib/smi/config.rb', line 31 def is_loaded?(m) Wrapper.smiIsLoaded(m) end |
.load_module(m) ⇒ Object
27 28 29 |
# File 'lib/smi/config.rb', line 27 def load_module(m) Wrapper.smiLoadModule(m) end |
.read_config(filename, tag) ⇒ Object
43 44 45 |
# File 'lib/smi/config.rb', line 43 def read_config(filename, tag) Wrapper.smiReadConfig(filename, tag) end |
.set_error_handler(&block) ⇒ Object
47 48 49 |
# File 'lib/smi/config.rb', line 47 def set_error_handler(&block) Wrapper.smiSetErrorHandler(block) end |
.set_flags(flags) ⇒ Object
23 24 25 |
# File 'lib/smi/config.rb', line 23 def set_flags(flags) Wrapper.smiSetFlags(flags) end |
.set_path(p) ⇒ Object
35 36 37 |
# File 'lib/smi/config.rb', line 35 def set_path(p) Wrapper.smiSetPath(p) end |
.set_severity(pattern, severity) ⇒ Object
39 40 41 |
# File 'lib/smi/config.rb', line 39 def set_severity(pattern, severity) Wrapper.smiSetSeverity(pattern, severity) end |