Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class ConfigureShit
- attr_reader :name, :email
- def configure_shit(&configure_block)
- configure_block.call
- end
- def set_name(argument)
- @name = argument
- end
- def set_email(argument)
- @email = argument
- end
- end
- class ConfigureSubclass < ConfigureShit
- def initialize
- configure_shit {
- set_name "dermot"
- set_email "hderms@gmail.com"
- }
- end
- end
- rb = ConfigureSubclass.new
- puts rb.name
Add Comment
Please, Sign In to add comment