.yardoc/objects/root.dat in iqeo-conf-0.0.12 vs .yardoc/objects/root.dat in iqeo-conf-0.0.13

- old
+ new

@@ -1,62 +1,78 @@ -{: rooto:"YARD::CodeObjects::RootObject:@childrenIC:&YARD::CodeObjects::CodeObjectList[o:$YARD::CodeObjects::ModuleObject;IC;[o:#YARD::CodeObjects::ClassObject;IC;[o:$YARD::CodeObjects::MethodObject:@module_functionF: @scope: -class:@visibility: public: -@pathI" Iqeo::Configuration.version:EF:@parameters[: @files[["lib/iqeo/configuration.rbi:@current_file_has_commentsT: -@name: version:@source_type: ruby: -@tags[:@docstringIC:YARD::Docstring"*Returns Configuration version number. ;F:@ref_tags[;[: @all"*Returns Configuration version number.: @object@ :@hash_flagF:@line_rangeo: +{: rooto:"YARD::CodeObjects::RootObject:@childrenIC:&YARD::CodeObjects::CodeObjectList[o:$YARD::CodeObjects::ModuleObject;IC;[o:#YARD::CodeObjects::ClassObject;IC;[: @owner@ +:@class_mixinsIC;[; @ +:@instance_mixinsIC;[; @ +:@attributesIC:SymbolHash{: +classIC;{:@symbolize_valueT: instanceIC;{;T;T: @aliases{: @groups[: @files[["lib/iqeo/configuration.rbi:@current_file_has_commentsF: +@name:BlankSlate:@source_type: ruby:@visibility: public: +@tags[:@docstringIC:YARD::Docstring" :EF: @object@ +: @summary0:@hash_flagF:@ref_tags[;[: @allI"; F:@docstring_extra0:@docstring_extra_tags0:@namespace@: +@pathI"Iqeo::BlankSlate; F:@superclasso:YARD::CodeObjects::Proxy : @imethod0:@origname0:@orignamespace0;: Object;(@: @obj0: @dynamicTo; +;IC;[o:$YARD::CodeObjects::MethodObject:@module_functionF: @scope;;;;)I" Iqeo::Configuration.version; F:@parameters[;[[@i;;T;: version;;;[;IC;"*Returns Configuration version number. ; F;$[;[;%"*Returns Configuration version number.;!@;#F:@line_rangeo: Range: exclF: -begini:endi:@docstring_extra0:@docstring_extra_tags0:@namespace@ -:@signature"def self.version:@explicitT: @source"#def self.version - VERSION -end: @dynamicTo; ; F; ;;;;I"Iqeo::Configuration.read;F;[[" string0;[[@i ;T;: read;;;[;IC;"]Creates a new Configuration instance from string. +begini9:endi9;&0;'0;(@:@signature"def self.version:@explicitT: @source"7def self.version + Iqeo::CONFIGURATION_VERSION +end;1To;2;3F;4;;;;)I"Iqeo::Configuration.read; F;5[[" string0;[[@iC;T;: read;;;[;IC;"]Creates a new Configuration instance from string. -Content should be in Eval DSL format. ;F;[;[;I"]Creates a new Configuration instance from string. +Content should be in eval DSL format. ; F;$[;[;%I"]Creates a new Configuration instance from string. -Content should be in Eval DSL format.;F;@; F;!o;";#F;$i;%i;&0;'0;(@ -;)"def self.read string;*T;+"Rdef self.read string +Content should be in eval DSL format.; F;!@,;#F;7o;8;9F;:i?;;iA;&0;'0;(@;<"def self.read string;=T;>"Rdef self.read string conf = self.new conf.instance_eval string conf -end;,To; ; F; ;;;;I"Iqeo::Configuration.load;F;[[" file0;[[@i*;T;: load;;;[;IC;"qCreates a new Configuration instance from filename or File/IO object. +end;1To;2;3F;4;;;;)I"Iqeo::Configuration.load; F;5[[" file0;[[@iM;T;: load;;;[;IC;"qCreates a new Configuration instance from filename or File/IO object. -Content should be in Eval DSL format. ;F;[;[;I"qCreates a new Configuration instance from filename or File/IO object. +Content should be in eval DSL format. ; F;$[;[;%I"qCreates a new Configuration instance from filename or File/IO object. -Content should be in Eval DSL format.;F;@); F;!o;";#F;$i&;%i(;&0;'0;(@ -;)"def self.load file;*T;+"ddef self.load file +Content should be in eval DSL format.; F;!@;;#F;7o;8;9F;:iI;;iK;&0;'0;(@;<"def self.load file;=T;>"ddef self.load file return self.read file.respond_to?(:read) ? file.read : File.read(file) -end;,To; ; F; ;;;;I"3Iqeo::Configuration.new_defer_block_for_parent;F;[[" parent0[I" &block;F0;[[@i.;F;:new_defer_block_for_parent;;;[;IC;" ;F;@8: @summary0; F;[;[;I";F;&0;'0;(@ -;)"7def self.new_defer_block_for_parent parent, &block;*T;+"Gdef self.new_defer_block_for_parent parent, &block +end;1To;2;3F;4;;;;)I"3Iqeo::Configuration.new_defer_block_for_parent; F;5[[" parent0[I" &block; F0;[[@iQ;F;:new_defer_block_for_parent;;;[;IC;" ; F;!@J;"0;#F;$[;[;%I"; F;&0;'0;(@;<"7def self.new_defer_block_for_parent parent, &block;=T;>"def self.new_defer_block_for_parent parent, &block conf = Configuration.new conf._parent = parent - if block_given? && block.arity == 1 + if block_given? && block.arity > 0 block.call(conf) # this is 'yield self' from the outside - else - raise "WTF! expected a block with a single parameter" end conf -end;,To; ; F; : instance;;;I"#Iqeo::Configuration#initialize;F;[[" default"nil[I" &block;F0;[[@i9;F;:initialize;;;[;IC;" ;F;@H;00; F;[;[o:YARD::Tags::Tag -:@tag_nameI" return;F: -@textI"$a new instance of Configuration;F;0: @types[I"Configuration;F;@H;I";F;&0;'0;(@ -;)")def initialize default = nil, &block;*T;+"/def initialize default = nil, &block +end;1To;2;3F;4;;:protected;)I" Iqeo::Configuration#_parent; F;5[;[[@iZ;F;: _parent;;;[;IC;"+Returns the value of attribute _parent ; F;!@Z;"0;#F;$[;[;%I"+Returns the value of attribute _parent; F;&0;'0;(@;<I"def _parent; F;>I"def _parent + @_parent +end; F;1To;2;3F;4;;;;)I"!Iqeo::Configuration#_parent=; F;5[[I" +value; F0;[[@iZ;F;: _parent=;;;[;IC;"Sets the attribute _parent ; F;!@f;"0;#F;$[;[o:YARD::Tags::Tag +:@tag_nameI" +param; F: +@textI"/the value to set the attribute _parent to.; F;I" +value; F: @types0;!@f;%I"WSets the attribute _parent +@param value the value to set the attribute _parent to.; F;&0;'0;(@;<I"def _parent=(value); F;>I"/def _parent=(value) + @_parent = value +end; F;1To;2;3F;4;;;B;)I"Iqeo::Configuration#_items; F;5[;[[@iZ;F;: _items;;;[;IC;"*Returns the value of attribute _items ; F;!@x;"0;#F;$[;[;%I"*Returns the value of attribute _items; F;&0;'0;(@;<I"def _items; F;>I"def _items + @_items +end; F;1To;2;3F;4;;;B;)I" Iqeo::Configuration#_items=; F;5[[I" +value; F0;[[@iZ;F;: _items=;;;[;IC;"Sets the attribute _items ; F;!@;"0;#F;$[;[o;E +;FI" +param; F;GI".the value to set the attribute _items to.; F;I" +value; F;H0;!@;%I"USets the attribute _items +@param value the value to set the attribute _items to.; F;&0;'0;(@;<I"def _items=(value); F;>I"-def _items=(value) + @_items = value +end; F;1To;2;3F;4;;;;)I"#Iqeo::Configuration#initialize; F;5[[" default"nil[I" &block; F0;[[@i\;F;:initialize;;;[;IC;" ; F;!@;"0;#F;$[;[o;E +;FI" return; F;GI"$a new instance of Configuration; F;0;H[I"Configuration; F;!@;%I"; F;&0;'0;(@;<")def initialize default = nil, &block;=T;>"{def initialize default = nil, &block + # todo: default immediate child Configurations should have _parent updated @_items = case when default.kind_of?( HashWithIndifferentAccess ) then default when default.kind_of?( Configuration ) then default._items else HashWithIndifferentAccess.new end @_parent = nil if block_given? - if block.arity == 1 # cannot set parent for yield blocks here as self is wrong !? + if block.arity > 0 # cannot set parent for yield blocks here as self is wrong !? yield self else if block.binding.eval('self').kind_of?( Configuration ) # for eval block if nested configuration @_parent = block.binding.eval('self') # set parent to make inherited values available end # during block execution instance_eval &block end end -end;,To; ; F; ;1;;;I"'Iqeo::Configuration#method_missing;F;[[" name0[I" *values;F0[I" &block;F0;[[@iL;F;:method_missing;;;[;IC;" ;F;@^;00; F;[;[;I";F;&0;'0;(@ -;)"-def method_missing name, *values, &block;*T;+"def method_missing name, *values, &block +end;1To;2;3F;4;;;;)I"'Iqeo::Configuration#method_missing; F;5[[" name0[I" *values; F0[I" &block; F0;[[@ip;F;:method_missing;;;[;IC;" ; F;!@;"0;#F;$[;[;%I"; F;&0;'0;(@;<"-def method_missing name, *values, &block;=T;>"def method_missing name, *values, &block return @_items.send( name, *values, &block ) if @_items.respond_to? name # @_items methods are highest priority name = name.to_s.chomp('=') if block_given? # block is a nested configuration @@ -68,101 +84,73 @@ end return _get name if values.empty? # just get item return _set name, values if values.size > 1 # set item to multiple values return _set name, values.first # set item to single value -end;,To; ; F; ;1;;;I" Iqeo::Configuration#_parent;F;[;[[@i^;F;: _parent;;;[;IC;"+Returns the value of attribute _parent ;F;@p;00; F;[;[;I"+Returns the value of attribute _parent;F;&0;'0;(@ -;)I"def _parent;F;+I"def _parent - @_parent -end;F;,To; ; F; ;1;;;I"!Iqeo::Configuration#_parent=;F;[[I" -value;F0;[[@i^;F;: _parent=;;;[;IC;"Sets the attribute _parent ;F;@|;00; F;[;[o;3 -;4I" -param;F;5I"/the value to set the attribute _parent to.;F;I" -value;F;60;@|;I"WSets the attribute _parent -@param value the value to set the attribute _parent to.;F;&0;'0;(@ -;)I"def _parent=(value);F;+I"/def _parent=(value) - @_parent = value -end;F;,To; ; F; ;1;;;I"Iqeo::Configuration#_items;F;[;[[@i^;F;: _items;;;[;IC;"*Returns the value of attribute _items ;F;@;00; F;[;[;I"*Returns the value of attribute _items;F;&0;'0;(@ -;)I"def _items;F;+I"def _items - @_items -end;F;,To; ; F; ;1;;;I" Iqeo::Configuration#_items=;F;[[I" -value;F0;[[@i^;F;: _items=;;;[;IC;"Sets the attribute _items ;F;@;00; F;[;[o;3 -;4I" -param;F;5I".the value to set the attribute _items to.;F;I" -value;F;60;@;I"USets the attribute _items -@param value the value to set the attribute _items to.;F;&0;'0;(@ -;)I"def _items=(value);F;+I"-def _items=(value) - @_items = value -end;F;,To; ; F; ;1;;;I"Iqeo::Configuration#_set;F;[["key0[" -value0;[[@i`;F;: _set;;;[;IC;" ;F;@;00; F;[;[;I";F;&0;'0;(@ -;)"def _set key, value;*T;+"8def _set key, value - # fix: extend parenting for enumerable with configurations at arbitrary depth +end;1To;2;3F;4;;;B;)I"Iqeo::Configuration#_set; F;5[["key0[" +value0;[[@i};F;: _set;;;[;IC;" ; F;!@;"0;#F;$[;[;%I"; F;&0;'0;(@;<"def _set key, value;=T;>"9def _set key, value + # todo: extend parenting for enumerable with configurations at arbitrary depth case when value.kind_of?( Configuration ) then value._parent = self when value.kind_of?( Enumerable ) then value.each { |v| v._parent = self if v.kind_of? Configuration } end @_items[key] = value -end;,To; ; F; ;1;;;I"Iqeo::Configuration#[]=;F;[;[[@ih;F;:[]=;;;[;IC;" ;F;@;00; F;[;[;I" -;F;!0;&0;'0;(@ -;)@;+"8def _set key, value - # fix: extend parenting for enumerable with configurations at arbitrary depth +end;1To;2;3F;4;;;B;)I"Iqeo::Configuration#[]=; F;5[;[[@i;F;:[]=;;;[;IC;" ; F;!@;"0;#F;$[;[;%I" +; F;70;&0;'0;(@;<@;>"9def _set key, value + # todo: extend parenting for enumerable with configurations at arbitrary depth case when value.kind_of?( Configuration ) then value._parent = self when value.kind_of?( Enumerable ) then value.each { |v| v._parent = self if v.kind_of? Configuration } end @_items[key] = value -end;,To; ; F; ;1;;;I"Iqeo::Configuration#_get;F;[["key0;[[@ip;T;: _get;;;[;IC;"Retrieves value for key, indifferent storage permits key to be a string or symbol. +end;1To;2;3F;4;;;B;)I"Iqeo::Configuration#_get; F;5[["key0;[[@i;T;: _get;;;[;IC;"Retrieves value for key, indifferent storage permits key to be a string or symbol. If configuration is nested, searches for key recursively up to root. -Returns nil if key does not exist. ;F;[;[;I"Retrieves value for key, indifferent storage permits key to be a string or symbol. +Returns nil if key does not exist. ; F;$[;[;%I"Retrieves value for key, indifferent storage permits key to be a string or symbol. If configuration is nested, searches for key recursively up to root. -Returns nil if key does not exist.;F;@; F;!o;";#F;$ij;%in;&0;'0;(@ -;)"def _get key;*T;+"}def _get key +Returns nil if key does not exist.; F;!@;#F;7o;8;9F;:i;;i;&0;'0;(@;<"def _get key;=T;>"}def _get key return @_items[key] unless @_items[key].nil? return @_items[key] if _parent.nil? _parent._get key -end;,To; ; F; ;1;;;I"Iqeo::Configuration#[];F;[;[[@iu;F;:[];;;[;IC;"Retrieves value for key, indifferent storage permits key to be a string or symbol. +end;1To;2;3F;4;;;B;)I"Iqeo::Configuration#[]; F;5[;[[@i;F;:[];;;[;IC;"Retrieves value for key, indifferent storage permits key to be a string or symbol. If configuration is nested, searches for key recursively up to root. -Returns nil if key does not exist. ;F;@;00; F;[;[;I"Retrieves value for key, indifferent storage permits key to be a string or symbol. +Returns nil if key does not exist. ; F;!@;"0;#F;$[;[;%I"Retrieves value for key, indifferent storage permits key to be a string or symbol. If configuration is nested, searches for key recursively up to root. Returns nil if key does not exist. -;F;!0;&0;'0;(@ -;)@;+"}def _get key +; F;70;&0;'0;(@;<@;>"}def _get key return @_items[key] unless @_items[key].nil? return @_items[key] if _parent.nil? _parent._get key -end;,To; ; F; ;1;;;I"Iqeo::Configuration#_read;F;[[" string0;[[@iw;F;: -_read;;;[;IC;" ;F;@;00; F;[;[;I";F;&0;'0;(@ -;)"def _read string;*T;+"0def _read string +end;1To;2;3F;4;;;;)I"Iqeo::Configuration#_read; F;5[[" string0;[[@i;F;: +_read;;;[;IC;" ; F;!@;"0;#F;$[;[;%I"; F;&0;'0;(@;<"def _read string;=T;>"0def _read string instance_eval string -end;,To; ; F; ;1;;;I"Iqeo::Configuration#_load;F;[[" file0;[[@i{;F;: -_load;;;[;IC;" ;F;@;00; F;[;[;I";F;&0;'0;(@ -;)"def _load file;*T;+"Udef _load file +end;1To;2;3F;4;;;;)I"Iqeo::Configuration#_load; F;5[[" file0;[[@i;F;: +_load;;;[;IC;" ; F;!@;"0;#F;$[;[;%I"; F;&0;'0;(@;<"def _load file;=T;>"Udef _load file _read file.respond_to?(:read) ? file.read : File.read(file) -end;,To; ; F; ;1;;;I" Iqeo::Configuration#_merge!;F;[[" -other0;[[@i;F;: _merge!;;;[;IC;" ;F;@;00; F;[;[;I";F;&0;'0;(@ -;)"def _merge! other;*T;+"?def _merge! other +end;1To;2;3F;4;;;;)I" Iqeo::Configuration#_merge!; F;5[[" +other0;[[@i;F;: _merge!;;;[;IC;" ; F;!@ +;"0;#F;$[;[;%I"; F;&0;'0;(@;<"def _merge! other;=T;>"def _merge! other + # todo: merges should update _parent of any immediate child Configurations @_items.merge! other._items self -end;,To; ; F; ;1;;;I"Iqeo::Configuration#_merge;F;[[" -other0;[[@i;F;: _merge;;;[;IC;" ;F;@;00; F;[;[;I";F;&0;'0;(@ -;)"def _merge other;*T;+"2def _merge other +end;1To;2;3F;4;;;;)I"Iqeo::Configuration#_merge; F;5[[" +other0;[[@i;F;: _merge;;;[;IC;" ; F;!@;"0;#F;$[;[;%I"; F;&0;'0;(@;<"def _merge other;=T;>"def _merge other + # todo: merges should update _parent of any immediate child Configurations self.dup._merge! other -end;,To:&YARD::CodeObjects::ConstantObject;[["&lib/iqeo/configuration/version.rbi ;T;: VERSION;;;;;[;IC;"$Current semantic version number ;F;[;[;"$Current semantic version number;@; F;!o;";#F;$i;%i;&0;'0;(@ -;I"!Iqeo::Configuration::VERSION;F;)"VERSION = "0.0.12";+"VERSION = "0.0.12": @value" "0.0.12";,T: @owner@ -:@class_mixinsIC;[;G@ -:@instance_mixinsIC;[;G@ -:@attributesIC:SymbolHash{;IC;K{:@symbolize_valueT;1IC;K{;8IC;K{;-@p: -write@|;LT;:IC;K{;-@;M@;LT;LT;LT: @aliases{@;<@;>: @groups[;[[@i[@i;T;:Configuration;;;;;[;IC;"BConfiguration class. +end;1T; @; IC;[; @; IC;[; @;IC;{;IC;{;T;IC;{;CIC;{;?@Z: +write@f;T;IIC;{;?@x;U@;T;T;T;{@;M@;O;[;[[@i7;T;:Configuration;;;;;[;IC;"BConfiguration class. -A DSL representing configuration files. ;F;[;[;I"BConfiguration class. +A DSL representing configuration files. ; F;$[;[;%I"BConfiguration class. -A DSL representing configuration files.;F;@ -; F;!o;";#F;$i;%i;&0;'0;(@;I"Iqeo::Configuration;F:@superclasso:YARD::CodeObjects::Proxy : @imethod0:@origname0:@orignamespace0;: Object;(@: @obj0;,T;G@;HIC;[;G@;IIC;[;G@;JIC;K{;IC;K{;LT;1IC;K{;LT;LT;N{;O[;[[@i[@i;T;: Iqeo;;;;;[;IC;"Iqeo namespace ;F;[;[;"Iqeo namespace;@; F;!o;";#F;$i ;%i ;&0;'0;(@;I" Iqeo;F;G@;HIC;[;G@;IIC;[;G@;JIC;K{;IC;K{;LT;1IC;K{;LT;LT;N{;O[;[;F;;;;;;;[;IC;" ;F;@;00; F;[;[;I";F;&0;'0;(0;I";F;X@:Iqeo::Configuration@ -: Iqeo::Configuration.version@ :Iqeo::Configuration.read@:Iqeo::Configuration.load@):3Iqeo::Configuration.new_defer_block_for_parent@8:#Iqeo::Configuration#initialize@H:'Iqeo::Configuration#method_missing@^: Iqeo::Configuration#_parent@p:!Iqeo::Configuration#_parent=@|:Iqeo::Configuration#_items@: Iqeo::Configuration#_items=@:Iqeo::Configuration#_set@:Iqeo::Configuration#[]=@:Iqeo::Configuration#_get@:Iqeo::Configuration#[]@:Iqeo::Configuration#_read@:Iqeo::Configuration#_load@: Iqeo::Configuration#_merge!@:Iqeo::Configuration#_merge@:!Iqeo::Configuration::VERSION@ +A DSL representing configuration files.; F;!@;#F;7o;8;9F;:i3;;i5;&0;'0;(@;)I"Iqeo::Configuration; F;*o;+ ;,0;-0;.0;;;(@;0@ +;1To:&YARD::CodeObjects::ConstantObject;[["&lib/iqeo/configuration/version.rbi;F;:CONFIGURATION_VERSION;;;;;[;IC;" ; F;!@9;"0;#F;$[;[;%I"; F;&0;'0;(@;)I" Iqeo::CONFIGURATION_VERSION; F;<"%CONFIGURATION_VERSION = "0.0.13";>"%CONFIGURATION_VERSION = "0.0.13": @value" "0.0.13";1T; @; IC;[; @; IC;[; @;IC;{;IC;{;T;IC;{;T;T;{;[;[[@i [@<i;T;: Iqeo;;;;;[;IC;"Iqeo namespace ; F;$[;[;%"Iqeo namespace;!@;#F;7o;8;9F;:i +;;i +;&0;'0;(@;)I" Iqeo; F; @; IC;[; @; IC;[; @;IC;{;IC;{;T;IC;{;T;T;{;[;[;F;;;;;;;[;IC;" ; F;!@;"0;#F;$[;[;%I"; F;&0;'0;(0;)I"; F;Z@:Iqeo::BlankSlate@ +:Iqeo::Configuration@: Iqeo::Configuration.version@:Iqeo::Configuration.read@,:Iqeo::Configuration.load@;:3Iqeo::Configuration.new_defer_block_for_parent@J: Iqeo::Configuration#_parent@Z:!Iqeo::Configuration#_parent=@f:Iqeo::Configuration#_items@x: Iqeo::Configuration#_items=@:#Iqeo::Configuration#initialize@:'Iqeo::Configuration#method_missing@:Iqeo::Configuration#_set@:Iqeo::Configuration#[]=@:Iqeo::Configuration#_get@:Iqeo::Configuration#[]@:Iqeo::Configuration#_read@:Iqeo::Configuration#_load@: Iqeo::Configuration#_merge!@ +:Iqeo::Configuration#_merge@: Iqeo::CONFIGURATION_VERSION@9 \ No newline at end of file