Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2015
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. class Some
  2.  
  3. private_class_method :new
  4.  
  5. def self.load(param)
  6. // some validations
  7. self.new param
  8. end
  9.  
  10. def initialize(param)
  11. // do something with param
  12. end
  13. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement