Skip to content

Commit

Permalink
Added documentation for LanItems#ReplaceItemUdev
Browse files Browse the repository at this point in the history
  • Loading branch information
mchf committed Aug 8, 2016
1 parent 766cb2c commit 9da4cab
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/modules/LanItems.rb
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,11 @@ def GetItemUdev(key)
# Note that the tuple is identified by key only. However modification flag is
# set only if value was changed (in case when replace_key == new_key)
#
# It also contain a logic on tuple operators. When the new_key is "NAME"
# then assignment operator (=) is used. Otherwise equality operator (==) is used.
# Thats bcs this function is currently used for touching "NAME", "KERNELS" and
# "ATTR{address}" keys only
#
# @param replace_key [string] udev key which identifies tuple to be replaced
# @param new_key [string] new key to by used
# @param new_val [string] value for new key
Expand Down

0 comments on commit 9da4cab

Please sign in to comment.