Class: RubyInstaller::Build::ErbCompiler::Box
- Inherits:
-
Object
- Object
- RubyInstaller::Build::ErbCompiler::Box
- Defined in:
- lib/ruby_installer/build/erb_compiler.rb
Instance Method Summary collapse
- #binding ⇒ Object
-
#initialize(co, task) ⇒ Box
constructor
A new instance of Box.
- #method_missing(meth, *args, &block) ⇒ Object
-
#q(text) ⇒ Object
Quote a text string with the quotation rules of the resulting files.
Constructor Details
#initialize(co, task) ⇒ Box
Returns a new instance of Box.
11 12 13 14 |
# 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) ⇒ Object
16 17 18 |
# 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 ⇒ Object
20 21 22 |
# File 'lib/ruby_installer/build/erb_compiler.rb', line 20 def binding Kernel.binding end |
#q(text) ⇒ Object
Quote a text string with the quotation rules of the resulting files.
25 26 27 28 29 30 31 |
# 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 |