Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module Gds
- class Base
- props :schema, :host
- def to_url
- "#{@schema}://#{@host}"
- end
- end
- class Example < Base
- schema 'http'
- host 'localhost'
- end
- end
- e = Gds::Example.new
- puts "!#{e.to_url}!"
Add Comment
Please, Sign In to add comment