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 Jun 8, 2016
1 parent 682f3ce commit 651576a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/modules/LanItems.rb
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,12 @@ def GetItemUdev(key)
udev_key_value(getUdevFallback, key)
end

# Replaces (replace_key,replace_value) tuple usign (new_key, new_val) one
#
# 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
def ReplaceItemUdev(replace_key, new_key, new_val)
new_rules = []
# udev syntax distinguishes among others:
Expand Down

0 comments on commit 651576a

Please sign in to comment.