Sha256: e873c41b85b482f22cec6260003568cd612d8e822ba54fc36d642193247c7005
Contents?: true
Size: 345 Bytes
Versions: 1
Compression:
Stored size: 345 Bytes
Contents
# frozen_string_literal: true require_relative '../sh' unless defined? ShellOnRuby::Sh def self.method_missing(name, *args, **kargs) ShellOnRuby::Sh.new(ShellOnRuby::Command.new(name, *args, **kargs)).stdout end class String # Returns a standard input of `self` for a shell command. def sh ShellOnRuby::Sh::Input.new self end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shell_on_ruby-1.0.0 | lib/ruby_on_shell/sh/extensions.rb |