lib/versionaire/function.rb in versionaire-9.1.0 vs lib/versionaire/function.rb in versionaire-9.1.1
- old
+ new
@@ -65,16 +65,12 @@
.map(&:to_i)
.then { |numbers| numbers.pad 0, max: 3 }
.then { |arguments| Version.with_positions(*arguments) }
end
- def required_keys?
- object.keys.all? { |key| Version.members.include? key }
- end
+ def required_keys? = object.keys.all? { |key| Version.members.include? key }
- def error_message object, body
- "Invalid version conversion: #{object}. #{body}"
- end
+ def error_message(object, body) = "Invalid version conversion: #{object}. #{body}"
end
private_constant :Converter
end