Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class A
- def initialize(scope)
- # scope can eq :a or :b
- @scope = scope
- end
- def get_scope
- get_scope(@scope)
- end
- end
- class B
- def get_scope_a
- get_scope(:a)
- end
- def get_scope_b
- get_scope(:b)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement