'what is type look like /cygwin|mswin|mingw|bccwin|wince|emx/ in ruby
i see
/cygwin|mswin|mingw|bccwin|wince|emx/ in ruby but I don't have information about this data what is it ?
for example
irb(main):001:0> /trwaw/
=> /trwaw/
Solution 1:[1]
If you are not sure about the class of an object then ask:
3.1.0 :001 > /trwaw/.class
=> Regexp
As @Jad says, it's a Regular Expression.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | steenslag |
