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
65 66 67 68 69 70 71 72 73 |
# File 'lib/ridlbe/ruby/config.rb', line 65 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
84 85 86 |
# File 'lib/ridlbe/ruby/config.rb', line 84 def RIDL.feval(fname, params = {}) File.open(fname, 'r') { |io| self.eval(io, params) } end |
.fparse(fname, params = {}) ⇒ Object
75 76 77 78 79 80 81 82 |
# File 'lib/ridlbe/ruby/config.rb', line 75 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 |