Class: BlockEntity

Inherits:
Entity show all
Defined in:
lib/exploration/block_entity.rb

Overview

Explores any children of a :block element. The block element itself is not yielded as an entity only children.

Instance Attribute Summary

Attributes inherited from Explorer

#resolve_strategy

Instance Method Summary collapse

Methods inherited from Entity

#add_explorer, #initialize

Constructor Details

This class inherits a constructor from Entity

Instance Method Details

#each(sexp, context = nil, &block) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/exploration/block_entity.rb', line 5

def each sexp, context=nil, &block
  if sexp.first == :block
    sexp.each_sexp do |sub_sexp|
      explore sub_sexp, context, &block
    end
  end
end