Class: Resources::Resource

Inherits:
Object
  • Object
show all
Defined in:
lib/robjc/resources/resource.rb

Direct Known Subclasses

AssetCatalogResource, StringResource

Instance Attribute Summary collapse

Instance Method Summary collapse

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.expand_path(path)
end

Instance Attribute Details

#pathObject (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