frankpimenta (Frank Pimenta)
- Login: frankpimenta
- Registered on: 10/18/2017
- Last sign in: 10/18/2017
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 1 | 1 | 2 |
Activity
10/19/2017
-
06:50 AM Ruby Feature #14025: #initialize with ivars
- Where did I define that only one argument could be passed?
I don't want to initialize ivar explicitly in #initialize.
I would like that instead of:
def initialize name='default_name', age=0
@name, @age = name, age
end
I c...
10/18/2017
-
07:44 PM Ruby Feature #14025: #initialize with ivars
- ~~~ ruby
module ObjectInitialization
def self.included base
base.class_eval do
extend ClassMethods
end
end
module ClassMethods
def attr_initializer default_arguments={}
raise Ru... -
02:47 PM Ruby Feature #14025 (Open): #initialize with ivars
- For:
class Person
def initialize name = 'person'
@name = name
end
end
I thought that the following would be nice:
class Person
initialize :name
end
class Person
initialize name: 'person', age: 18... -
02:53 PM Ruby Bug #14026: RUBY ERROR ON DIVISION with FDIV
- Screen shot is better for the eye.
-
02:49 PM Ruby Bug #14026 (Closed): RUBY ERROR ON DIVISION with FDIV
- ~$ ruby -v
ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-darwin16]
~$ rvm use 2.4.2
Using /Users/frankpimenta/.rvm/gems/ruby-2.4.2
~$ ruby -rbigdecimal -e 'p 196.fdiv(BigDecimal("13.0"))'
2.203413367e-314
~$ rvm use 2....