Class: IDL::RIDL
- Inherits:
-
Object
- Object
- IDL::RIDL
- Defined in:
- lib/ridlbe/ruby/config.rb
Overview
class StrOStream
Class Method Summary collapse
- .eval(src, params = {}) ⇒ Object
- .feval(fname, params = {}) ⇒ Object
- .fparse(fname, params = {}) ⇒ Object
Class Method Details
.eval(src, params = {}) ⇒ Object
62 63 64 65 66 67 68 69 70 |
# File 'lib/ridlbe/ruby/config.rb', line 62 def RIDL.eval(src, params={}) params[:idl_eval] = true params[:expand_includes] = true params[:client_stubs] = true if params[:client_stubs].nil? params[:stubs_only] ||= false s = parse0(src, params) Kernel.eval(s.to_s, ::TOPLEVEL_BINDING) s = nil end |
.feval(fname, params = {}) ⇒ Object
79 80 81 |
# File 'lib/ridlbe/ruby/config.rb', line 79 def RIDL.feval(fname, params = {}) File.open(fname, "r") { |io| self.eval(io, params) } end |
.fparse(fname, params = {}) ⇒ Object
71 72 73 74 75 76 77 78 |
# File 'lib/ridlbe/ruby/config.rb', line 71 def RIDL.fparse(fname, params = {}) params[:client_stubs] = true if params[:client_stubs].nil? params[:stubs_only] ||= false f = File.open(fname, "r") self.parse(f, params) ensure f.close end |