Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8084359
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T17:46:19+00:00 2026-06-05T17:46:19+00:00

While ruby does allow modifying any class at any place in the code, I

  • 0

While ruby does allow modifying any class at any place in the code, I was wondering if it was possible to create a sandbox like protected environment to run some third party code such that rest of the application code would be isolated from any arbitrary modifications to the pre-defined classes/ standard library classes.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T17:46:21+00:00Added an answer on June 5, 2026 at 5:46 pm

    You can play with Ruby’s safe levels:

    http://www.ruby-doc.org/docs/ProgrammingRuby/html/taint.html

    Here’s the description of safe level 4 and above:

    Ruby effectively partitions the running program in two. Nontainted
    objects may not be modified. Typically, this will be used to create a
    sandbox: the program sets up an environment using a lower $SAFE level,
    then resets $SAFE to 4 to prevent subsequent changes to that
    environment.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Ruby has been around for a while now so I was wondering if there
While reading Programming Ruby , I ran across this code snippet: while gets num1,
While looking over some Ruby code I noticed methods declared with self. prepended to
Why does A.send('!='.to_sym, B) raises a NoMethodError in Ruby 1.8.7 while A != B
I have a Ruby script that looks like: def big_function puts starting... #does stuff
Say I have this Ruby code in test.rb module MyModule class TestClassA end class
I'm trying to configure a simpler Pry prompt for entering Ruby code. What does
Ruby 1.9.3 defaults to using Psych for YAML. While the ruby-doc documentation for it
Recently, I use Vim as my editor while programming Ruby, but I don't know
While going through Ruby On Rails Tutorial by Michael Hartl,in the section where the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.