Top Level Namespace

Includes:
RantContext

Defined Under Namespace

Modules: Enumerable, FileUtils, Rant, RantContext, Zlib Classes: Array, File, Module, Object, Range, String, Time

Instance Method Summary collapse

Methods included from RantContext

#source_rf

Instance Method Details

#add_to_cmd_array(klass, &block) ⇒ Object


6
7
8
# File 'lib/rant/csharp/base_compiler_adapter.rb', line 6

def add_to_cmd_array klass, &block
  klass.instance_eval { define_method :to_cmd_array, &block}
end

#add_to_cs_arg_method(klass, &block) ⇒ Object

Helper method to add a to_cs_arg method to a class (yay meta!)


2
3
4
# File 'lib/rant/csharp/base_compiler_adapter.rb', line 2

def add_to_cs_arg_method klass, &block
  klass.instance_eval { define_method :to_cs_arg, &block }
end

#rantObject


62
63
64
# File 'lib/rant.rb', line 62

def rant
    Rant.rant
end