Class: Objctify::Context
- Inherits:
-
Object
- Object
- Objctify::Context
- Defined in:
- lib/objctify/context.rb
Defined Under Namespace
Classes: J2ObjCSettings
Instance Attribute Summary collapse
-
#java_sources_param ⇒ Object
Returns the value of attribute java_sources_param.
-
#project_name_param ⇒ Object
Returns the value of attribute project_name_param.
Instance Method Summary collapse
-
#initialize ⇒ Context
constructor
A new instance of Context.
- #j2objc_config {|@j2objc_config| ... } ⇒ Object
- #java_sources(java_sources) ⇒ Object
- #project_name(project_name) ⇒ Object
Constructor Details
#initialize ⇒ Context
Returns a new instance of Context.
16 17 18 19 |
# File 'lib/objctify/context.rb', line 16 def initialize @j2objc_config = J2ObjCSettings.new @project_name = '' end |
Instance Attribute Details
#java_sources_param ⇒ Object
Returns the value of attribute java_sources_param.
14 15 16 |
# File 'lib/objctify/context.rb', line 14 def java_sources_param @java_sources_param end |
#project_name_param ⇒ Object
Returns the value of attribute project_name_param.
14 15 16 |
# File 'lib/objctify/context.rb', line 14 def project_name_param @project_name_param end |
Instance Method Details
#j2objc_config {|@j2objc_config| ... } ⇒ Object
29 30 31 32 |
# File 'lib/objctify/context.rb', line 29 def j2objc_config yield(@j2objc_config) if block_given? @j2objc_config end |
#java_sources(java_sources) ⇒ Object
25 26 27 |
# File 'lib/objctify/context.rb', line 25 def java_sources(java_sources) self.java_sources_param = java_sources end |
#project_name(project_name) ⇒ Object
21 22 23 |
# File 'lib/objctify/context.rb', line 21 def project_name(project_name) self.project_name_param = project_name end |