class Helium::Console::Registry::Element::LazyStringEvaluator

Attributes

lines[R]

Public Class Methods

new(&block) click to toggle source
# File lib/helium/console/registry.rb, line 10
def initialize(&block)
  @lines = Enumerator.new { |y| block.(y) }
end

Public Instance Methods

to_s() click to toggle source
# File lib/helium/console/registry.rb, line 16
def to_s
  lines.to_a.join
end