Module: Kernel

Defined in:
lib/dsl/monkeypatches.rb,
lib/dsl/bm_dsl.rb

Overview

Some aestetics in aliasing:

Examples:

my_proc = λ { |e| puts e } # ⇒ lambda, strict parameters list
my_proc = Λ { |e| puts e } # ⇒ proc, not strict parameters list

Defined Under Namespace

Classes: RandomVoid

Instance Method Summary collapse

Instance Method Details

#(*attribs) ⇒ Object Also known as: benchmark

Mark the task for benchmarking

Parameters:

  • attribs ([:rest])

    the list of methods to benchmark



151
152
153
# File 'lib/dsl/bm_dsl.rb', line 151

def  *attribs
  attribs.each { |a| YARD::Bench::Marks. self, a.to_sym }
end