Class: IbRubyProxy::Server::IbRubyClassFilesGenerator
- Inherits:
-
Object
- Object
- IbRubyProxy::Server::IbRubyClassFilesGenerator
- Defined in:
- lib/ib_ruby_proxy/server/ib_ruby_class_files_generator.rb
Overview
Source code generator that interacts with IbRubyClassSourceGenerator and writes down the actual files with the source for both Ruby classes representing IB classes and Ruby extensions for these.
Instance Attribute Summary collapse
-
#client_code_dir ⇒ Object
readonly
Returns the value of attribute client_code_dir.
-
#server_code_dir ⇒ Object
readonly
Returns the value of attribute server_code_dir.
Instance Method Summary collapse
-
#generate_all ⇒ Object
Generate client files and server class extensions.
-
#initialize(client_code_dir:, server_code_dir:) ⇒ IbRubyClassFilesGenerator
constructor
A new instance of IbRubyClassFilesGenerator.
Constructor Details
#initialize(client_code_dir:, server_code_dir:) ⇒ IbRubyClassFilesGenerator
Returns a new instance of IbRubyClassFilesGenerator.
11 12 13 14 15 16 |
# File 'lib/ib_ruby_proxy/server/ib_ruby_class_files_generator.rb', line 11 def initialize(client_code_dir:, server_code_dir:) @client_code_dir = client_code_dir @server_code_dir = server_code_dir import_ruby_classes end |
Instance Attribute Details
#client_code_dir ⇒ Object (readonly)
Returns the value of attribute client_code_dir.
7 8 9 |
# File 'lib/ib_ruby_proxy/server/ib_ruby_class_files_generator.rb', line 7 def client_code_dir @client_code_dir end |
#server_code_dir ⇒ Object (readonly)
Returns the value of attribute server_code_dir.
7 8 9 |
# File 'lib/ib_ruby_proxy/server/ib_ruby_class_files_generator.rb', line 7 def server_code_dir @server_code_dir end |
Instance Method Details
#generate_all ⇒ Object
Generate client files and server class extensions
It will format the generated code with Rufo.
24 25 26 27 |
# File 'lib/ib_ruby_proxy/server/ib_ruby_class_files_generator.rb', line 24 def generate_all do_generate_all format_code end |