Class: Kodi::Namespace
- Inherits:
-
Object
- Object
- Kodi::Namespace
- Defined in:
- lib/kodi/namespace.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Instance Method Summary collapse
-
#initialize(uri, name, *methods) ⇒ Namespace
constructor
A new instance of Namespace.
- #method_missing(method_name, *arguments, &block) ⇒ Object
Constructor Details
#initialize(uri, name, *methods) ⇒ Namespace
Returns a new instance of Namespace.
5 6 7 8 9 |
# File 'lib/kodi/namespace.rb', line 5 def initialize(uri, name, *methods) @uri = uri @name = name @methods = methods end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/kodi/namespace.rb', line 3 def name @name end |
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
3 4 5 |
# File 'lib/kodi/namespace.rb', line 3 def uri @uri end |