lib/puppetdb/astnode.rb in ruby-puppetdb-1.1.1 vs lib/puppetdb/astnode.rb in ruby-puppetdb-1.2.0
- old
+ new
@@ -5,9 +5,14 @@
@type = type
@value = value
@children = children
end
+ def capitalize!
+ @value=@value.to_s.split("::").collect { |s| s.capitalize }.join("::")
+ return self
+ end
+
# Generate the the query code for a subquery
#
# @param from_mode [Symbol] the mode you want to subquery from
# @param to_mode [Symbol] the mode you want to subquery to
# @param query the query inside the subquery