lib/face_control/comment.rb in face_control-0.6.0 vs lib/face_control/comment.rb in face_control-0.7.0
- old
+ new
@@ -1,11 +1,11 @@
module FaceControl
class Comment
attr_accessor :file, :line, :text
- def initialize(file:, line:, text:)
- self.file = file
- self.line = line
- self.text = text
+ def initialize(options)
+ self.file = options.fetch(:file)
+ self.line = options.fetch(:line)
+ self.text = options.fetch(:text)
end
end
end