Hi,

On 2016/11/19 7:45, Ken D'Ambrosio wrote:
> On 2016-11-18 17:29, Ryan Davis wrote:
>>> On Nov 18, 2016, at 14:18, KING SABRI <king.sabri / gmail.com> wrote:
>>>
>>> Is there anyway to make the ruby commandline detects the .rb files
>>> like python?
>>
>> No clue what this means...
>
> What he *probably* means is that he's on Windows, and wants to just type
> <foo.rb> and have it execute.  Which means he needs to go and Google
> "Windows file associations", so that he can associate files ending in
> .rb with the Ruby interpreter.
>
> Note that Ruby, itself, doesn't do this -- rather, the operating system
> does.

Ruby doesn't. And we can do it manually as Ken wrote.

RubyInstaller for Windows does through setup if a checkbox is enabled.
I've never checked it though :)

--
Toshi


Unsubscribe: <mailto:ruby-talk-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>