Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module Test
- class << self
- attr_accessor :title
- end
- class << self
- def configure
- yield self if block_given?
- end
- end
- end
- Test.configure do |config|
- config.title = 'Yo!'
- end
- puts Test.title
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement