lib/poolparty/pool/custom_resource.rb in poolparty-0.2.6 vs lib/poolparty/pool/custom_resource.rb in poolparty-0.2.18

- old
+ new

@@ -20,15 +20,15 @@ # Resources for function call class CallFunction < Resource def initialize(str="", opts={}, parent=self, &block) @str = str - super(opts, parent, &block) + # super(opts, parent, &block) end - def to_string(prev="") + def to_string(pre="") returning Array.new do |arr| - arr << "#{prev}#{@str}" + arr << "#{pre}#{@str}" end.join("\n") end end class CustomResource < Resource @@ -40,13 +40,13 @@ def self.inherited(subclass) PoolParty::Resources.available_custom_resources << subclass super(subclass) end - def to_string(prev="") + def to_string(pre="") returning Array.new do |output| - output << "#{prev} # Custom Functions\n" - output << self.class.custom_functions_to_string(prev) + output << "#{pre} # Custom Functions\n" + output << self.class.custom_functions_to_string(pre) end.join("\n") end end # Stub methods \ No newline at end of file