Sha256: 1c6838934d40a17db71bb8c0116ca69963f03b287e55132b33fcdda5e8bccdec
Contents?: true
Size: 362 Bytes
Versions: 3
Compression:
Stored size: 362 Bytes
Contents
module Grape module Util class LazyBlock def initialize(&new_block) @block = new_block end def evaluate_from(configuration) @block.call(configuration) end def evaluate @block.call({}) end def lazy? true end def to_s evaluate.to_s end end end end
Version data entries
3 entries across 3 versions & 2 rubygems