class Module
Public Instance Methods
Source
# File lib/inline.rb, line 831 def inline(lang = :C, options={}) Inline.register self require "inline/#{lang}" unless Inline.const_defined? lang builder_class = Inline.const_get lang builder = builder_class.new self yield builder unless options[:testing] then unless builder.load_cache then builder.build builder.load end end end
Extends the Module
class to have an inline method. The default language/builder used is C, but can be specified with the lang
parameter.