Skip to content

Commit 746fd05

Browse files
authored
Merge pull request #489 from mojavelinux/fix-param-names
fix parameter names in internal Ruby API
2 parents f27691f + e7657d9 commit 746fd05

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

asciidoctorj-core/src/main/resources/org/asciidoctor/internal/asciidoctorclass.rb

+8-8
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module Extensions
1010
require 'asciidoctor/extensions'
1111

1212
class AsciidoctorModule
13-
java_implements Java::Asciidoctor
13+
java_implements Java::Asciidoctor
1414

1515
def unregister_all_extensions()
1616
Asciidoctor::Extensions.unregister_all
@@ -64,16 +64,16 @@ def inline_macro(extensionName, blockSymbol)
6464
end
6565
end
6666

67-
def convert_file(content, options = {})
68-
return Asciidoctor.convert_file(content, options)
67+
def convert_file(filename, options = {})
68+
return Asciidoctor.convert_file(filename, options)
6969
end
7070

7171
def convert(content, options = {})
7272
return Asciidoctor.convert(content, options)
7373
end
7474

75-
def load_file(content, options = {})
76-
return Asciidoctor.load_file(content, options)
75+
def load_file(filename, options = {})
76+
return Asciidoctor.load_file(filename, options)
7777
end
7878

7979
def load(content, options = {})
@@ -88,15 +88,15 @@ def resolve_converter(backend)
8888
return Asciidoctor::Converter::Factory.resolve backend
8989
end
9090

91-
def converters()
91+
def converters
9292
return Asciidoctor::Converter::Factory.converters.keys
9393
end
9494

9595
def unregister_all_converters
9696
Asciidoctor::Converter::Factory.unregister_all
9797
end
9898

99-
def asciidoctorRuntimeEnvironmentVersion()
99+
def asciidoctorRuntimeEnvironmentVersion
100100
return Asciidoctor::VERSION
101101
end
102102
end
@@ -111,4 +111,4 @@ class AbstractNode
111111
class AbstractBlock
112112
alias :append :<< unless respond_to? :append
113113
end
114-
end
114+
end

0 commit comments

Comments
 (0)