Class: Resources::Writer
- Inherits:
-
Object
- Object
- Resources::Writer
- Defined in:
- lib/robjc/writer.rb
Instance Attribute Summary collapse
-
#generated_at ⇒ Object
Returns the value of attribute generated_at.
-
#resources ⇒ Object
Returns the value of attribute resources.
Instance Method Summary collapse
- #add_to_target(target) ⇒ Object
-
#initialize(resources) ⇒ Writer
constructor
A new instance of Writer.
- #write ⇒ Object
Constructor Details
#initialize(resources) ⇒ Writer
Returns a new instance of Writer.
9 10 11 |
# File 'lib/robjc/writer.rb', line 9 def initialize(resources) @resources = resources end |
Instance Attribute Details
#generated_at ⇒ Object
Returns the value of attribute generated_at.
6 7 8 |
# File 'lib/robjc/writer.rb', line 6 def generated_at @generated_at end |
#resources ⇒ Object
Returns the value of attribute resources.
7 8 9 |
# File 'lib/robjc/writer.rb', line 7 def resources @resources end |
Instance Method Details
#add_to_target(target) ⇒ Object
21 22 23 24 |
# File 'lib/robjc/writer.rb', line 21 def add_to_target(target) references = [ header_file_reference, implementation_file_reference ] target.add_file_references end |
#write ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/robjc/writer.rb', line 13 def write @generated_at = Time.now ensure_directory write_resources_class write_images_class write_strings_class end |