Class: BELParser::Script::Filter
- Inherits:
-
Object
- Object
- BELParser::Script::Filter
- Defined in:
- lib/bel_parser/script/filter.rb
Overview
Constant Summary collapse
- TYPES =
Represents the BEL Script AST Node type. TODO These could be AST::Node subclasses instead.
[ :simple_statement, :observed_term, :nested_statement, :annotation_definition, :namespace_definition, :set, :document_property, :unset, :blank_line, :comment_line ]
Instance Method Summary collapse
- #each(&block) ⇒ Object
-
#initialize(ast_enum) ⇒ Filter
constructor
A new instance of Filter.
Constructor Details
Instance Method Details
#each(&block) ⇒ Object
26 27 28 29 30 31 32 |
# File 'lib/bel_parser/script/filter.rb', line 26 def each(&block) if block_given? @ast_filter.each(&block) else enum_for(:each) end end |