Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix parameter names in internal Ruby API #489

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 = {})
Expand All @@ -88,15 +88,15 @@ def resolve_converter(backend)
return Asciidoctor::Converter::Factory.resolve backend
end

def converters()
def converters
return Asciidoctor::Converter::Factory.converters.keys
end

def unregister_all_converters
Asciidoctor::Converter::Factory.unregister_all
end

def asciidoctorRuntimeEnvironmentVersion()
def asciidoctorRuntimeEnvironmentVersion
return Asciidoctor::VERSION
end
end
Expand All @@ -111,4 +111,4 @@ class AbstractNode
class AbstractBlock
alias :append :<< unless respond_to? :append
end
end
end