.yardoc/objects/root.dat in jini-0.0.3 vs .yardoc/objects/root.dat in jini-0.0.4

- old
+ new

@@ -12,12 +12,12 @@ begini%:endi%:@ref_tag_recurse_counti:@namespace@: @pathI"Jini::InvalidPath;F:@superclasso:YARD::CodeObjects::Proxy :@orignamespace0:@origname0: @imethod0;:StandardError;,@: @obj0: @type;: @dynamicTo:$YARD::CodeObjects::MethodObject:@module_functionF: @scope;;;;-I"Jini#initialize;F:@parameters[[I" head;TI"'';T;[[@i);T;:initialize;;;[;{;IC; ";T;[o:YARD::Tags::Tag :@tag_nameI" param;F: -@textI"with head of your xpath;T;I" head;T: @types[I" String;T;$@o;< -;=I" return;F;>I"a new instance of Jini;T;0;?[I" Jini;F;$@;![;"I"1@param head [String] with head of your xpath;T;#0;$@;%F;&o;';(F;)i(;*i(;+i;,@:@explicitT: @sourceI"1def initialize(head = '') +@textI";T;I" head;T: @types[I" String;T;$@o;< +;=I" return;F;>I"a new instance of Jini;T;0;?[I" Jini;F;$@;![;"I"@param head [String];T;#0;$@;%F;&o;';(F;)i(;*i(;+i;,@:@explicitT: @sourceI"1def initialize(head = '') @head = head end;T:@signatureI"def initialize(head = '');T;6To;7;8F;9;;;;-I"Jini#to_s;F;:[;[[@i/;T;: to_s;;;[;{;IC; "Convert it to a string.;T;[o;< ;=I" return;F;>I"xpath as string;T;0;?[I" String;T;$@;;![;"I"=Convert it to a string. @return [String] xpath as string;T;#0;$@;;%F;&o;';(F;)i-;*i.;+i;,@;@T;AI"def to_s @head.to_s @@ -27,19 +27,19 @@ ;=I" return;F;>I" object;T;0;?[I" Jini;T;$@N;![;"I"OAdditional node for xpath. @param node [String] node @return [Jini] object;T;#0;$@N;%F;&o;';(F;)i3;*i5;+i;,@;@T;AI":def add_path(node) Jini.new("#{@head}/#{node}") end;T;BI"def add_path(node);T;6To;7;8F;9;;;;-I"Jini#add_attr;F;:[[I"key;T0[I" -value;T0;[[@i?;T;: add_attr;;;[;{;IC; "3Additional attribute for xpath. -[@key="value"];T;[o;< +value;T0;[[@i?;T;: add_attr;;;[;{;IC; "5Additional attribute for xpath. +'[@key="value"]';T;[o;< ;=I" param;F;>I"name of attr;T;I"key;T;?[I" String;T;$@io;< ;=I" param;F;>I"value of attr;T;I" value;T;?[I" String;T;$@io;< -;=I" return;F;>I" object;T;0;?[I" Jini;T;$@i;![;"I"‰Additional attribute for xpath. -[@key="value"] +;=I" return;F;>I" object;T;0;?[I" Jini;T;$@i;![;"I"‹Additional attribute for xpath. +'[@key="value"]' @param key [String] name of attr @param value [String] value of attr @return [Jini] object;T;#0;$@i;%F;&o;';(F;)i:;*i>;+i;,@;@T;AI"Ndef add_attr(key, value) Jini.new("#{@head}[@#{key}=\"#{value}\"]") end;T;BI"def add_attr(key, value);T;6To;7;8F;9;;;;-I"Jini#all_attr;F;:[[I" @@ -49,40 +49,40 @@ value;T;?[I" String;T;$@‡o;< ;=I" return;F;>I" object;T;0;?[I" Jini;T;$@‡;![;"I"XAdds an @value to xpath @param value [String] with value attr @return [Jini] object;T;#0;$@‡;%F;&o;';(F;)iC;*iE;+i;,@;@T;AI"<def all_attr(value) Jini.new("#{@head}@#{value}") -end;T;BI"def all_attr(value);T;6To;7;8F;9;;;;-I" Jini#all;F;:[;[[@iM;T;:all;;;[;{;IC; "5Xpath with all elements. -Addition a *** to xpath;T;[o;< +end;T;BI"def all_attr(value);T;6To;7;8F;9;;;;-I" Jini#all;F;:[;[[@iM;T;:all;;;[;{;IC; ">Xpath with all elements. +Addition an '*' to tail of xpath;T;[o;< ;=I" return;F;>I" object;T;0;?[I" Jini;T;$@¢o;< ;=I" -raise;F;>I";T;0;?[I"InvalidPath;T;$@¢;![;"I"KXpath with all elements. -Addition a *** to xpath -@return [Jini] object;T;#0;$@¢;%F;&o;';(F;)iJ;*iL;+i;,@;@T;AI"–def all +raise;F;>I";T;0;?[I"InvalidPath;T;$@¢;![;"I"TXpath with all elements. +Addition an '*' to tail of xpath +@return [Jini] object;T;#0;$@¢;%F;&o;';(F;)iJ;*iL;+i;,@;@T;AI"{def all raise InvalidPath, 'You cannot add all tag after attr!' if @head[-1].eql?(']') - Jini.new(add_path('*').to_s) unless @head[-1].eql?(']') + Jini.new(add_path('*').to_s) end;T;BI" def all;T;6To;7;8F;9;;;;-I"Jini#add_all;F;:[[I" node;T0;[[@iV;T;: add_all;;;[;{;IC; ">Xpath with all named elements. -Addition _//node_ to xpath;T;[o;< +Addition '//node' to xpath;T;[o;< ;=I" param;F;>I"name of node;T;I" node;T;?[I" String;T;$@ºo;< ;=I" return;F;>I" object;T;0;?[I" Jini;T;$@º;![;"I"vXpath with all named elements. -Addition _//node_ to xpath +Addition '//node' to xpath @param node [String] name of node @return [Jini] object;T;#0;$@º;%F;&o;';(F;)iR;*iU;+i;,@;@T;AI":def add_all(node) Jini.new("#{@head}//#{node}") end;T;BI"def add_all(node);T;6To;7;8F;9;;;;-I" Jini#at;F;:[[I" position;T0;[[@i^;T;:at;;;[;{;IC; "1Access by index. -Addition _[index]_ to xpath;T;[o;< +Addition '[index]' to xpath;T;[o;< ;=I" param;F;>I" number;T;I" position;T;?[I" Integer;T;$@Õo;< ;=I" return;F;>I" object;T;0;?[I" Jini;T;$@Õ;![;"I"hAccess by index. -Addition _[index]_ to xpath +Addition '[index]' to xpath @param position [Integer] number @return [Jini] object;T;#0;$@Õ;%F;&o;';(F;)iZ;*i];+i;,@;@T;AI"=def at(position) Jini.new("#{@head}[#{position}]") -end;T;BI"def at(position);T;6To;7;8F;9;;;;-I"Jini#selection;F;:[;[[@ie;T;:selection;;;[;{;IC; "ZReplace all _/_ to _::_ symbols +end;T;BI"def at(position);T;6To;7;8F;9;;;;-I"Jini#selection;F;:[;[[@ie;T;:selection;;;[;{;IC; "ZReplace all '/' to '::' symbols if path doesn't contain invalid symbols for selection;T;[o;< -;=I" return;F;>I"selection;T;0;?[I" Jini;T;$@ð;![;"I"sReplace all _/_ to _::_ symbols +;=I" return;F;>I"selection;T;0;?[I" Jini;T;$@ð;![;"I"sReplace all '/' to '::' symbols if path doesn't contain invalid symbols for selection @return [Jini] selection;T;#0;$@ð;%F;&o;';(F;)ib;*id;+i;,@;@T;AI"Çdef selection if @head.include?('[') || @head.include?(']') || @head.include?('@') raise InvalidPath, 'Cannot select, path contains bad symbols' end @@ -90,32 +90,29 @@ end;T;BI"def selection;T;6To;7;8F;9;;;;-I"Jini#remove_path;F;:[[I" node;T0;[[@io;T;:remove_path;;;[;{;IC; "Removes node by name;T;[o;< ;=I" param;F;>I"name of node for removal;T;I" node;T;?[I" String;T;$@o;< ;=I" return;F;>I"without a node;T;0;?[I" Jini;T;$@;![;"I"eRemoves node by name @param node [String] name of node for removal -@return [Jini] without a node;T;#0;$@;%F;&o;';(F;)il;*in;+i;,@;@T;AI"Sdef remove_path(node) - copy = @head - Jini.new(copy.gsub("/#{node}", '')) -end;T;BI"def remove_path(node);T;6To;7;8F;9;;;;-I"Jini#remove_attr;F;:[[I" name;T0;[[@i|;T;:remove_attr;;;[;{;IC; "bRemoves attr by name +@return [Jini] without a node;T;#0;$@;%F;&o;';(F;)il;*in;+i;,@;@T;AI"Edef remove_path(node) + Jini.new(@head.gsub("/#{node}", '')) +end;T;BI"def remove_path(node);T;6To;7;8F;9;;;;-I"Jini#remove_attr;F;:[[I" name;T0;[[@iz;T;:remove_attr;;;[;{;IC; "PRemoves attr by name before: -`/parent/child[@k="v"]` -.remove_attr('k') +'/parent/child[@k="v"]' after: -`/parent/child`;T;[o;< +'/parent/child';T;[o;< ;=I" param;F;>I" of attr;T;I" name;T;?[I" String;T;$@o;< -;=I" return;F;>I"without an attr;T;0;?[I" Jini;T;$@;![;"I"™Removes attr by name +;=I" return;F;>I"without an attr;T;0;?[I" Jini;T;$@;![;"I"‡Removes attr by name before: -`/parent/child[@k="v"]` -.remove_attr('k') +'/parent/child[@k="v"]' after: -`/parent/child` +'/parent/child' @param [String] name of attr -@return [Jini] without an attr;T;#0;$@;%F;&o;';(F;)it;*i{;+i;,@;@T;AI"def remove_attr(name) +@return [Jini] without an attr;T;#0;$@;%F;&o;';(F;)is;*iy;+i;,@;@T;AI"~def remove_attr(name) Jini.new( @head .gsub( - /(\[@|#{name}="[^"]+"|[]+|])/, + /(\[@?#{name}="[^"]+"(\[\]+|\]))/, '' ) ) end;T;BI"def remove_attr(name);T;6T; @; IC;[; \ No newline at end of file