Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Some
- private_class_method :new
- def self.load(param)
- // some validations
- self.new param
- end
- def initialize(param)
- // do something with param
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement