class Rugments::Formatters::Null

A formatter which renders nothing.

Public Class Methods

new(*) click to toggle source
# File lib/rugments/formatters/null.rb, line 7
def initialize(*)
end

Public Instance Methods

stream(tokens) { |"| ... } click to toggle source
# File lib/rugments/formatters/null.rb, line 10
def stream(tokens, &_b)
  tokens.each do |tok, val|
    yield "#{tok} #{val.inspect}\n"
  end
end