lib/rubyoshka/renderer.rb
# Emits the given object into the rendering buffer
# @param o [Proc, Rubyoshka, Module, String] emitted object
# @return [void]
Emits the given object into the rendering buffer
Emits the given object into the rendering buffer
def emit(o)
      case o
      when ::Proc
        instance_eval(&o)
      when Rubyoshka
        instance_eval(&o.template)
      when Module
        emit(o::Component)
      when nil
      else
        @buffer << o.to_s
      end
    end
def emit ( o ) case o when :: Proc instance_eval ( & o ) when Rubyoshka instance_eval ( & o . template ) when Module emit ( o :: Component ) when nil else @buffer << o . to_s end end
Emits the given object into the rendering buffer
Emits the given object into the rendering buffer
# If module is given, the component is expected to be a const inside the module
None
void
o
None