Class: Listings::DeferredScopeDescriptor
- Inherits:
-
Object
- Object
- Listings::DeferredScopeDescriptor
- Defined in:
- lib/listings/scope_descriptor.rb
Instance Attribute Summary collapse
-
#block ⇒ Object
Returns the value of attribute block.
Instance Method Summary collapse
- #construct ⇒ Object
- #deferred? ⇒ Boolean
-
#initialize(&block) ⇒ DeferredScopeDescriptor
constructor
A new instance of DeferredScopeDescriptor.
Constructor Details
#initialize(&block) ⇒ DeferredScopeDescriptor
Returns a new instance of DeferredScopeDescriptor.
49 50 51 |
# File 'lib/listings/scope_descriptor.rb', line 49 def initialize(&block) @block = block end |
Instance Attribute Details
#block ⇒ Object
Returns the value of attribute block.
47 48 49 |
# File 'lib/listings/scope_descriptor.rb', line 47 def block @block end |
Instance Method Details
#construct ⇒ Object
53 54 55 |
# File 'lib/listings/scope_descriptor.rb', line 53 def construct @block.call end |
#deferred? ⇒ Boolean
57 58 59 |
# File 'lib/listings/scope_descriptor.rb', line 57 def deferred? true end |