Skip to content

Commit

Permalink
Add missing '<<' method to delegators
Browse files Browse the repository at this point in the history
  • Loading branch information
repeatedly committed May 8, 2017
1 parent 182bebd commit d106632
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fluent/log.rb
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ def enable_color(b = true)
extend Forwardable
def_delegators '@logger', :enable_color?, :enable_debug, :enable_event,
:disable_events, :log_event_enabled, :log_event_enamed=, :time_format, :time_format=,
:event, :caller_line, :puts, :write, :flush, :reset, :out, :out=,
:event, :caller_line, :puts, :write, :<<, :flush, :reset, :out, :out=,
:optional_header, :optional_header=, :optional_attrs, :optional_attrs=
end

Expand Down
2 changes: 2 additions & 0 deletions test/test_log.rb
Original file line number Diff line number Diff line change
Expand Up @@ -722,6 +722,8 @@ def test_write

def test_write_alias
assert(@log.respond_to?(:<<))
mock(@log.out).write("log")
@log << "log"
end

def test_out
Expand Down

0 comments on commit d106632

Please sign in to comment.