mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-09 15:37:56 -05:00
8 lines
205 B
Ruby
8 lines
205 B
Ruby
class InstallError < RuntimeError; end
|
|
|
|
def property(*properties)
|
|
properties.each do |prop|
|
|
self.class_eval("def self.#{prop}(#{prop} = nil); @#{prop} = #{prop} if #{prop}; @#{prop}; end")
|
|
end
|
|
end
|