Class: Listings::DeferredScopeDescriptor

Inherits:
Object
  • Object
show all
Defined in:
lib/listings/scope_descriptor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#blockObject

Returns the value of attribute block.



47
48
49
# File 'lib/listings/scope_descriptor.rb', line 47

def block
  @block
end

Instance Method Details

#constructObject



53
54
55
# File 'lib/listings/scope_descriptor.rb', line 53

def construct
  @block.call
end

#deferred?Boolean

Returns:

  • (Boolean)


57
58
59
# File 'lib/listings/scope_descriptor.rb', line 57

def deferred?
  true
end