Class: Grape::Util::Lazy::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/grape/util/lazy/base.rb

Overview

Abstract parent for lazy wrappers used by the remount/configuration machinery. Call sites can type-check with is_a?(Grape::Util::Lazy::Base) instead of enumerating the concrete subclasses.

Direct Known Subclasses

Block, Value

Instance Method Summary collapse

Instance Method Details

#to_sObject



10
11
12
# File 'lib/grape/util/lazy/base.rb', line 10

def to_s
  evaluate.to_s
end