Class: Toys::SourceSpec::Block

Inherits:
Base
  • Object
show all
Defined in:
lib/toys/source_spec.rb

Overview

A spec for a source given as a block of DSL code.

Instance Attribute Summary collapse

Attributes inherited from Base

#context_directory, #source_name

Method Summary

Methods inherited from Base

#==, #hash

Instance Attribute Details

#blockProc (readonly)

The source block, to be executed in the context of the tool DSL DSL::Tool.

Returns:

  • (Proc)


503
504
505
# File 'lib/toys/source_spec.rb', line 503

def block
  @block
end