Class: Blockhead::Extractors::Enumerable
- Inherits:
-
Abstract
- Object
- Abstract
- Blockhead::Extractors::Enumerable
show all
- Defined in:
- lib/blockhead/extractors/enumerable.rb
Instance Attribute Summary
Attributes inherited from Abstract
#next, #object
Instance Method Summary
collapse
Methods inherited from Abstract
#extract, #initialize
Instance Method Details
8
9
10
|
# File 'lib/blockhead/extractors/enumerable.rb', line 8
def
object.map { |obj| Block.new(obj, [], @proc). }
end
|
#valid? ⇒ Boolean
4
5
6
|
# File 'lib/blockhead/extractors/enumerable.rb', line 4
def valid?
@proc && safe_enumerable?
end
|