rake icon indicating copy to clipboard operation
rake copied to clipboard

Accept Pathname object as rule's prerequisite

Open gemmaro opened this issue 1 year ago • 0 comments

Hello,

This change allows the rule to accept a Pathname object as a prerequisite.

foo = Pathname("foo")

# before
rule ".o" => [".c", foo.to_s] do |t|
  # ...
end

# after
rule ".o" => ["c", foo] do |t|
  # ...
end

Thank you,

gemmaro avatar Dec 15 '23 12:12 gemmaro