example/example.rb in human_duration-1.0.0 vs example/example.rb in human_duration-1.0.1
- old
+ new
@@ -37,5 +37,22 @@
puts "\tConfig: type = full"
test_value.each do |x|
printf "\t\t%s\n", HumanDurationStatic.humanize(x)
end
+
+puts 'Direct method access'
+
+printf "\tConfig: type = conpact [default]\n"
+test_value.each do |x|
+ printf "\t\t%s\n", humanize(x)
+end
+
+printf "\tConfig: type = short\n"
+test_value.each do |x|
+ printf "\t\t%s\n", humanize(x)
+end
+
+puts "\tConfig: type = full"
+test_value.each do |x|
+ printf "\t\t%s\n", humanize(x)
+end