Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~1K People Reached
Favorite Tags
Member Avatar for arupface

Hi I do have XML as below: <?xml version="1.0" encoding="UTF-8"?> <library> <book publisher="Del Rey"> <series>The Lord of the Pings</series> <title>Way Station</title> <author>Clifford D. Simak</author> </book> <book publisher="Del Rey"> <series>The Lord of the Rings</series> <title>The Fellowship of the Ring</title> <author>J.R.R. Tolkien</author> </book> <book publisher="Del Rey"> <series>The Lord of the Rings</series> <title>The …

Member Avatar for gusano79
0
249
Member Avatar for arupface

class variables have a niche to fill: ***visibility to a class and its instances, and to no one else. Typically, this means being visible in class-method definitions and instancemethod definitions, and sometimes at the top level of the class definition.*** I understood that. But didn't find any example of the …

Member Avatar for sepp2k
0
191
Member Avatar for arupface

This is below is an example of superclass/subclass construct : C:\>irb --simple-prompt >> class Parent >> @@x = 10 >> end => 10 >> class Child < Parent >> @@x = 12 >> end => 12 >> class Parent >> puts "@@X = #{@@x}" >> end @@X = 12 => …

Member Avatar for sepp2k
0
198
Member Avatar for arupface

How the below mentioned `quantifiers` differ - with respect of scenarios,speed,etc. - `? v/s ?? v/s ?+` (**_1 or 0 times_**) - `* v/s *? v/s *+` (**_0 or more times_**) - `+ v/s +? v/s ++` (**_1 or more times_**) `?,*,+` belongs to `greedy` `??,*?,+?` belongs to `reluctant` `++,*+,,?+` …

Member Avatar for Taywin
0
102
Member Avatar for arupface

The comparison operators: * === * <=> * eql? * equal? * == Both are performing equality check I know. Some of them overrides `==` also. But now my query is how to think,what to use in what situations? Explanation with a code would be better idea to understand. Thanks …

Member Avatar for Taywin
0
204
Member Avatar for arupface

Hi, Is there any difference between `inject(:+) and inject(&:+)` ? If `NO` hen how these two kind of syntax with same method? And if `Yes` then why the output are same for both? irb(main):005:0> [1, 2, 3].inject(&:+) => 6 irb(main):006:0> [1, 2, 3].inject(:+) => 6 irb(main):007:0> Thanks,

Member Avatar for L7Sqr
0
139
Member Avatar for arupface

irb(main):001:0> time=Time.new => 2013-01-12 11:22:54 +0530 irb(main):002:0> puts time.to_s 2013-01-12 11:22:54 +0530 => nil irb(main):003:0> puts time.ctime Sat Jan 12 11:22:54 2013 => nil irb(main):004:0> puts time.local_time NoMethodError: undefined method `local_time' for 2013-01-12 11:22:54 +0530:Time from (irb):4 from C:/Ruby193/bin/irb:12:in `<main>' irb(main):005:0> puts time.localtime 2013-01-12 11:22:54 +0530 => nil irb(main):006:0> puts …

Member Avatar for L7Sqr
0
104
Member Avatar for arupface

Could you please tell me how the below directives works with Ruby array `pack()` method. As the document not gives piece of code to describe what to use , when? `n,v,U,w,L!<,S!< I!< ` thanks

Member Avatar for Taywin
0
57
Member Avatar for arupface

There is `text label` on a webpage, and I am trying to click on that to open a pop-up window,but not getting opened. here is the `HTML` code: <td width="40%"> <div id="EmpId.outline"> <input type="hidden" name="EmpId" value="" id="popupEmpId"> <input type="text" name="EmpCode" value="" readonly="readonly" class="textMedium250" id="popupEmpCode" autocomplete="off"> <a href="#f2"><label onclick="checkForPopup('EmpPopupDiv','Select a Emp',640,true,refreshConditionOptions);"> + Search for a Emp</label> </a> …

Member Avatar for Taywin
0
175