Class: Blockhead::Extractors::Block
- Defined in:
- lib/blockhead/extractors/block.rb
Instance Attribute Summary
Attributes inherited from Abstract
Instance Method Summary collapse
Methods inherited from Abstract
Constructor Details
This class inherits a constructor from Blockhead::Extractors::Abstract
Instance Method Details
#extract_value ⇒ Object
8 9 10 |
# File 'lib/blockhead/extractors/block.rb', line 8 def extract_value Schema.define(object, &@proc).marshal end |
#valid? ⇒ Boolean
4 5 6 |
# File 'lib/blockhead/extractors/block.rb', line 4 def valid? !!@proc end |