Class: RubyInstaller::Build::ErbCompiler::Box
Relationships & Source Files | |
Inherits: | Object |
Defined in: | lib/ruby_installer/build/erb_compiler.rb |
Class Method Summary
- .new(co, task) ⇒ Box constructor
Instance Method Summary
- #binding
- #method_missing(meth, *args, &block)
-
#q(text)
Quote a text string with the quotation rules of the resulting files.
Constructor Details
.new(co, task) ⇒ Box
# File 'lib/ruby_installer/build/erb_compiler.rb', line 11
def initialize(co, task) @co = co @task = task end
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(meth, *args, &block)
[ GitHub ]# File 'lib/ruby_installer/build/erb_compiler.rb', line 16
def method_missing(meth, *args, &block) @task.send(meth, *args, &block) end
Instance Method Details
#binding
[ GitHub ]# File 'lib/ruby_installer/build/erb_compiler.rb', line 20
def binding Kernel.binding end
#q(text)
Quote a text string with the quotation rules of the resulting files.
# File 'lib/ruby_installer/build/erb_compiler.rb', line 25
def q(text) meth = case @co.result_filename when /\.iss$/ then :q_inno else raise "can not determine quote rules for #{@co.result_filename}" end send(meth, text) end