Class: NoMoss::RoleApi::AbstractProxy
- Inherits:
-
Object
- Object
- NoMoss::RoleApi::AbstractProxy
- Extended by:
- Forwardable
- Defined in:
- lib/no_moss/role_api.rb
Instance Method Summary collapse
-
#initialize(object) ⇒ AbstractProxy
constructor
A new instance of AbstractProxy.
- #method_missing(name, *args, &b) ⇒ Object
Constructor Details
#initialize(object) ⇒ AbstractProxy
Returns a new instance of AbstractProxy.
30 31 32 |
# File 'lib/no_moss/role_api.rb', line 30 def initialize(object) @object = object end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args, &b) ⇒ Object
34 35 36 37 38 39 40 |
# File 'lib/no_moss/role_api.rb', line 34 def method_missing(name, *args, &b) super rescue NoMethodError raise \ NoMoss::NoRoleApiMethodError, \ "#{name} method not included in the API of this role." end |