lib/remi/transform.rb in remi-0.2.35 vs lib/remi/transform.rb in remi-0.2.36
- old
+ new
@@ -16,11 +16,11 @@
# Public: Accessor for target metadata
attr_accessor :target_metadata
# Public: Set to true if the transform expects multiple arguments (default: false)
- attr_reader :multi_arg
+ attr_reader :multi_args
# Public: Defines the operation of this transform class.
#
# value - The value to be transformed
#
@@ -34,10 +34,10 @@
#
# values - The values to be transformed.
#
# Returns the transformed value.
def call(*values)
- if @multi_arg
+ if @multi_args
to_proc.call(*values)
else
to_proc.call(Array(values).first)
end
end