Class: Bwrap::Args::Bind::Library::RubyBinds Private
- Inherits:
-
Object
- Object
- Bwrap::Args::Bind::Library::RubyBinds
- Defined in:
- lib/bwrap/args/bind/library/ruby_binds.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Ruby feature implementation specific class.
Instance Attribute Summary collapse
-
#config ⇒ Object
writeonly
private
Instance of Config.
Instance Method Summary collapse
-
#initialize(args) ⇒ RubyBinds
constructor
private
A new instance of RubyBinds.
- #ruby_binds_for_features ⇒ Object private
Constructor Details
#initialize(args) ⇒ RubyBinds
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of RubyBinds.
10 11 12 |
# File 'lib/bwrap/args/bind/library/ruby_binds.rb', line 10 def initialize args @args = args end |
Instance Attribute Details
#config=(value) ⇒ Object (writeonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Instance of Config.
8 9 10 |
# File 'lib/bwrap/args/bind/library/ruby_binds.rb', line 8 def config=(value) @config = value end |
Instance Method Details
#ruby_binds_for_features ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/bwrap/args/bind/library/ruby_binds.rb', line 14 def ruby_binds_for_features return unless @config and @config.features.ruby.enabled? @mounts = [] # Mount some common Ruby executables. # This is most often /usr/bin. bindir = Pathname.new @config.features.ruby.ruby_config["bindir"] bind_ruby_executable gem_binds bindir @args.add :library_feature_binds, @mounts end |