lib/parameters/instance_param.rb in parameters-0.3.1 vs lib/parameters/instance_param.rb in parameters-0.4.0

- old
+ new

@@ -23,10 +23,12 @@ # The description of the instance parameter. # # @param [Object] value # The initial value for the instance parameter. # + # @api semipublic + # def initialize(object,name,type=nil,description=nil,value=nil) super(name,type,description) @object = object @@ -74,11 +76,11 @@ # Representation of the instance param. # def to_s text = @name.to_s - text << " [#{value.inspect}]" if value - text << "\t#{@description}" if @description + text << "\t[#{value.inspect}]" if value + text << "\t#{@description}" if @description return text end #