[#23231] What do you think about changing the return value of Kernel#require and Kernel#load to the source encoding of the required file? — =?ISO-8859-15?Q?Wolfgang_N=E1dasi-Donner?= <ed.odanow@...>

Dear Ruby developers and users!

8 messages 2009/04/17

[#23318] [Feature #1408] 0.1.to_r not equal to (1/10) — Heesob Park <redmine@...>

Feature #1408: 0.1.to_r not equal to (1/10)

19 messages 2009/04/26

[ruby-core:23097] [Feature #1081] add File::write() convenience method

From: Roger Pack <redmine@...>
Date: 2009-04-01 16:05:18 UTC
List: ruby-core #23097
Issue #1081 has been updated by Roger Pack.


> What do you think proper API for combined File.open?
> 
>   File::write(path, string, mode, opt)

I also prefer this first way.
File.write('hello.txt', 'some stuff')

and default to mode 'wb' for all platforms
Thanks for looking into this.  It would be quite useful.

----------------------------------------
http://redmine.ruby-lang.org/issues/show/1081

----------------------------------------
http://redmine.ruby-lang.org

In This Thread