Class: Resources::Resource
- Inherits:
-
Object
- Object
- Resources::Resource
- Defined in:
- lib/robjc/resources/resource.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(path) ⇒ Resource
constructor
A new instance of Resource.
- #method_name(string) ⇒ Object
Constructor Details
#initialize(path) ⇒ Resource
Returns a new instance of Resource.
5 6 7 |
# File 'lib/robjc/resources/resource.rb', line 5 def initialize(path) @path = File.(path) end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
3 4 5 |
# File 'lib/robjc/resources/resource.rb', line 3 def path @path end |
Instance Method Details
#method_name(string) ⇒ Object
9 10 11 |
# File 'lib/robjc/resources/resource.rb', line 9 def method_name(string) return string end |