Sha256: be71b6d5aed63c28918a3ffc30e0d415f0d5932eeabf2fad167925bcd0b186af
Contents?: true
Size: 270 Bytes
Versions: 2
Compression:
Stored size: 270 Bytes
Contents
module PageEz class HasOneResult include DelegatesTo[:@result] def initialize(container:, selector:, options:, constructor:) @result = constructor.call( container.find( selector, **options ) ) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
page_ez-0.2.0 | lib/page_ez/has_one_result.rb |
page_ez-0.1.0 | lib/page_ez/has_one_result.rb |