Skip to content

Commit

Permalink
Merge pull request #282 from yast/newbie-docs-ops
Browse files Browse the repository at this point in the history
Introduce Ops to newcomers
  • Loading branch information
mvidner authored Feb 7, 2022
2 parents f634ea7 + 8dc15a9 commit e744956
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ruby/yast/ops.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ class FunRef; end
class YReference; end
class Byteblock; end

# These emulate the YCP arithmetic and logic operators.
# In particular, `nil` as an argument mostly propagates to the results.
# You will probably want to check for `nil` beforehand
# and then use the normal Ruby operators.
module Ops
# map of YCPTypes to ruby types
TYPES_MAP = {
Expand Down

0 comments on commit e744956

Please sign in to comment.