Class: ILORb::RIBCL
- Inherits:
-
Hash
- Object
- Hash
- ILORb::RIBCL
- Defined in:
- lib/ilorb/ribcl.rb
Overview
ILO API methods DSL implementation
Defined Under Namespace
Classes: Command, Context, InvalidDefinitionError, NotImplementedError
Constant Summary collapse
- VALUES =
mapping between Ruby objects and api format
{ true => "yes", false => "no", }
Class Method Summary collapse
Instance Method Summary collapse
- #encode(value) ⇒ Object
-
#initialize ⇒ RIBCL
constructor
A new instance of RIBCL.
Constructor Details
#initialize ⇒ RIBCL
Returns a new instance of RIBCL.
7 8 9 |
# File 'lib/ilorb/ribcl.rb', line 7 def initialize super end |
Class Method Details
.load(path) ⇒ Object
21 22 23 24 25 26 27 |
# File 'lib/ilorb/ribcl.rb', line 21 def self.load(path) obj = new Dir.glob(path).each do |file| obj.instance_eval(File.read(file), file) end obj end |