Skip to content
This repository has been archived by the owner on Jun 30, 2022. It is now read-only.

Commit

Permalink
cleaned up the delegators in Message a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Nicklas committed Jun 19, 2015
1 parent a60753c commit 88095ce
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions lib/lita/message.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,14 @@ class Message
attr_reader :source

# @!method user
# The user who sent the message.
# @return [Lita::User] The user.
# @see Lita::Source#user
def_delegators :source, :user

# The user who sent the message.
# @return [Lita::User] The user.
# @see Lita::Source#user
# @!method room_object
# The room where the message was received from.
# @return [Lita::Room] The room.
# @see Lita::Source#room_object
def_delegators :source, :room_object
# The room where the message came from.
# @return [Lita::Room] The room.
# @see Lita::Source#room_object
def_delegators :source, :user, :room_object

# @param robot [Lita::Robot] The currently running robot.
# @param body [String] The body of the message.
Expand Down

0 comments on commit 88095ce

Please sign in to comment.