From e7657d99cdebe4c225e703df7966d04ca8823135 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Mon, 18 Jul 2016 00:26:20 -0600 Subject: [PATCH] fix parameter names in internal Ruby API - use filename instead of content where appropriate - replace tabs with spaces - drop unnecesary empty brackets for methods that take no parameters --- .../org/asciidoctor/internal/asciidoctorclass.rb | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/asciidoctorj-core/src/main/resources/org/asciidoctor/internal/asciidoctorclass.rb b/asciidoctorj-core/src/main/resources/org/asciidoctor/internal/asciidoctorclass.rb index a89148c50..4ab342423 100644 --- a/asciidoctorj-core/src/main/resources/org/asciidoctor/internal/asciidoctorclass.rb +++ b/asciidoctorj-core/src/main/resources/org/asciidoctor/internal/asciidoctorclass.rb @@ -10,7 +10,7 @@ module Extensions require 'asciidoctor/extensions' class AsciidoctorModule - java_implements Java::Asciidoctor + java_implements Java::Asciidoctor def unregister_all_extensions() Asciidoctor::Extensions.unregister_all @@ -64,16 +64,16 @@ def inline_macro(extensionName, blockSymbol) end end - def convert_file(content, options = {}) - return Asciidoctor.convert_file(content, options) + def convert_file(filename, options = {}) + return Asciidoctor.convert_file(filename, options) end def convert(content, options = {}) return Asciidoctor.convert(content, options) end - def load_file(content, options = {}) - return Asciidoctor.load_file(content, options) + def load_file(filename, options = {}) + return Asciidoctor.load_file(filename, options) end def load(content, options = {}) @@ -88,7 +88,7 @@ def resolve_converter(backend) return Asciidoctor::Converter::Factory.resolve backend end - def converters() + def converters return Asciidoctor::Converter::Factory.converters.keys end @@ -96,7 +96,7 @@ def unregister_all_converters Asciidoctor::Converter::Factory.unregister_all end - def asciidoctorRuntimeEnvironmentVersion() + def asciidoctorRuntimeEnvironmentVersion return Asciidoctor::VERSION end end @@ -111,4 +111,4 @@ class AbstractNode class AbstractBlock alias :append :<< unless respond_to? :append end -end \ No newline at end of file +end