Skip to content

Instantly share code, notes, and snippets.

@anonhostpi
Created January 17, 2024 07:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonhostpi/92482072386af614be5186578c309ce9 to your computer and use it in GitHub Desktop.
Save anonhostpi/92482072386af614be5186578c309ce9 to your computer and use it in GitHub Desktop.
Run Ruby Code in PowerShell
# 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