Class: RbSys::Mkmf::Config
- Inherits:
-
Object
- Object
- RbSys::Mkmf::Config
- Defined in:
- lib/rb_sys/mkmf/config.rb
Overview
Config that delegates to CargoBuilder if needded
Instance Attribute Summary collapse
-
#clean_after_install ⇒ Object
Returns the value of attribute clean_after_install.
-
#force_install_rust_toolchain ⇒ Object
Returns the value of attribute force_install_rust_toolchain.
Instance Method Summary collapse
-
#initialize(builder) ⇒ Config
constructor
A new instance of Config.
- #method_missing(name, *args, &blk) ⇒ Object
- #respond_to_missing?(name, include_private = false) ⇒ Boolean
Constructor Details
#initialize(builder) ⇒ Config
Returns a new instance of Config.
9 10 11 12 13 |
# File 'lib/rb_sys/mkmf/config.rb', line 9 def initialize(builder) @builder = builder @force_install_rust_toolchain = false @clean_after_install = rubygems_invoked? end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args, &blk) ⇒ Object
15 16 17 |
# File 'lib/rb_sys/mkmf/config.rb', line 15 def method_missing(name, *args, &blk) @builder.send(name, *args, &blk) end |
Instance Attribute Details
#clean_after_install ⇒ Object
Returns the value of attribute clean_after_install.
7 8 9 |
# File 'lib/rb_sys/mkmf/config.rb', line 7 def clean_after_install @clean_after_install end |
#force_install_rust_toolchain ⇒ Object
Returns the value of attribute force_install_rust_toolchain.
7 8 9 |
# File 'lib/rb_sys/mkmf/config.rb', line 7 def force_install_rust_toolchain @force_install_rust_toolchain end |
Instance Method Details
#respond_to_missing?(name, include_private = false) ⇒ Boolean
19 20 21 |
# File 'lib/rb_sys/mkmf/config.rb', line 19 def respond_to_missing?(name, include_private = false) @builder.respond_to?(name) || super end |