General

Profile

D1mon (Dim F)

  • Login: D1mon
  • Registered on: 07/23/2019
  • Last connection: 02/01/2020

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 1 3 4

Activity

08/11/2019

08:30 PM Ruby master Feature #16095: 2 Features: remove (simplify) 'new' keyword and Property Shorthand
**figured out how to do it:**
``` ruby
%P[arg1 arg2]
```
in def initialize:
``` ruby
def initialize(arg1, arg...
D1mon (Dim F)
07:31 AM Ruby master Feature #16095: 2 Features: remove (simplify) 'new' keyword and Property Shorthand
I correctly understood that this function will be added in version 2.7? https://github.com/ruby/ruby/pull/2231/commit... D1mon (Dim F)
07:24 AM Ruby master Feature #16095: 2 Features: remove (simplify) 'new' keyword and Property Shorthand
Feature 1: I agree that you can do anything with the help of metaprogramming, and this will have to be registered in ... D1mon (Dim F)
03:12 PM Ruby master Feature #15236: add support for hash shorthand
Well, if the syntax is misleading or intersects with an existing design. Make another syntax to work, why cancel (rej... D1mon (Dim F)
09:33 AM Ruby master Misc #16096: each in each (multiple uses 'each')
this method is not suitable since the 3rd search (find_elements) is also used.
Are you saying this is a bug? you can...
D1mon (Dim F)

08/10/2019

11:15 PM Ruby master Misc #16096: each in each (multiple uses 'each')
**selenium**
``` ruby
for el in driver.find_elements(xpath: <some_xpath>)
for e1 in el.find_elements(xpath: ...)...
D1mon (Dim F)
09:43 PM Ruby master Misc #16096 (Rejected): each in each (multiple uses 'each')
``` ruby
obj.each {|a|
a.some_method1.each {|b|
... # comes here (enter)
}
a.some_method2.ea...
D1mon (Dim F)
09:16 PM Ruby master Feature #16095 (Rejected): 2 Features: remove (simplify) 'new' keyword and Property Shorthand
**common use:**
``` ruby
class A
def initialize(arg1, arg2)
@arg1 = arg1
@arg2 = arg2
end
end
A.n...
D1mon (Dim F)

08/05/2019

07:10 AM Ruby master Feature #16045: Calling functions with keyword arguments
``` ruby
def fn(a:1,b:2,c:3)
p a,b,c
end
fn(c:4) # 1 2 4
```
did not know. can close
D1mon (Dim F)
06:45 AM Ruby master Feature #16045 (Rejected): Calling functions with keyword arguments
Python:
``` python
def fn(a=1,b=2,c=3):
print(a,b,c)
fn() # 1 2 3
fn(c=4) # 1 2 4
```
Ruby:
``` rub...
D1mon (Dim F)

Also available in: Atom