Created
January 17, 2024 07:23
-
-
Save anonhostpi/92482072386af614be5186578c309ce9 to your computer and use it in GitHub Desktop.
Run Ruby Code in PowerShell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import-Module Import-Package | |
Import-Package IronRuby.Libraries | |
$ruby = [IronRuby.Ruby]::CreateRuntime() | |
$engine = $ruby.GetEngine("rb") | |
$engine.Execute("puts 'Hello, World!'") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment