Class: Nidyx::ObjCModelBase
- Inherits:
-
Mustache
- Object
- Mustache
- Nidyx::ObjCModelBase
- Defined in:
- lib/nidyx/objc/model_base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#author ⇒ Object
Returns the value of attribute author.
-
#class_forward_declarations ⇒ Object
Returns the value of attribute class_forward_declarations.
-
#comments ⇒ Object
Returns the value of attribute comments.
-
#file_name ⇒ Object
Returns the value of attribute file_name.
-
#imports ⇒ Object
Returns the value of attribute imports.
-
#json_model ⇒ Object
Returns the value of attribute json_model.
-
#name ⇒ Object
Returns the value of attribute name.
-
#owner ⇒ Object
Returns the value of attribute owner.
-
#project ⇒ Object
Returns the value of attribute project.
-
#protocol_declarations ⇒ Object
Returns the value of attribute protocol_declarations.
-
#protocol_forward_declarations ⇒ Object
Returns the value of attribute protocol_forward_declarations.
Instance Method Summary collapse
- #has_class_forward_declarations? ⇒ Boolean
- #has_imports? ⇒ Boolean
- #has_protocol_declarations? ⇒ Boolean
- #has_protocol_forward_declarations? ⇒ Boolean
-
#initialize(name, options) ⇒ ObjCModelBase
constructor
A new instance of ObjCModelBase.
- #json_model? ⇒ Boolean
- #no_owner? ⇒ Boolean
Constructor Details
#initialize(name, options) ⇒ ObjCModelBase
Returns a new instance of ObjCModelBase.
11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/nidyx/objc/model_base.rb', line 11 def initialize(name, ) @name = name @author = [:author] @owner = [:company] @project = [:project] @comments = [:comments] @json_model = [:objc][:json_model] if [:objc] @imports = [] @class_forward_declarations = [] @protocol_forward_declarations = [] @protocol_declarations = [] @protocol_declarations << name if @json_model end |
Instance Attribute Details
#author ⇒ Object
Returns the value of attribute author.
5 6 7 |
# File 'lib/nidyx/objc/model_base.rb', line 5 def @author end |
#class_forward_declarations ⇒ Object
Returns the value of attribute class_forward_declarations.
5 6 7 |
# File 'lib/nidyx/objc/model_base.rb', line 5 def class_forward_declarations @class_forward_declarations end |
#comments ⇒ Object
Returns the value of attribute comments.
5 6 7 |
# File 'lib/nidyx/objc/model_base.rb', line 5 def comments @comments end |
#file_name ⇒ Object
Returns the value of attribute file_name.
5 6 7 |
# File 'lib/nidyx/objc/model_base.rb', line 5 def file_name @file_name end |
#imports ⇒ Object
Returns the value of attribute imports.
5 6 7 |
# File 'lib/nidyx/objc/model_base.rb', line 5 def imports @imports end |
#json_model ⇒ Object
Returns the value of attribute json_model.
5 6 7 |
# File 'lib/nidyx/objc/model_base.rb', line 5 def json_model @json_model end |
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/nidyx/objc/model_base.rb', line 5 def name @name end |
#owner ⇒ Object
Returns the value of attribute owner.
5 6 7 |
# File 'lib/nidyx/objc/model_base.rb', line 5 def owner @owner end |
#project ⇒ Object
Returns the value of attribute project.
5 6 7 |
# File 'lib/nidyx/objc/model_base.rb', line 5 def project @project end |
#protocol_declarations ⇒ Object
Returns the value of attribute protocol_declarations.
5 6 7 |
# File 'lib/nidyx/objc/model_base.rb', line 5 def protocol_declarations @protocol_declarations end |
#protocol_forward_declarations ⇒ Object
Returns the value of attribute protocol_forward_declarations.
5 6 7 |
# File 'lib/nidyx/objc/model_base.rb', line 5 def protocol_forward_declarations @protocol_forward_declarations end |
Instance Method Details
#has_class_forward_declarations? ⇒ Boolean
29 30 31 |
# File 'lib/nidyx/objc/model_base.rb', line 29 def has_class_forward_declarations? !self.class_forward_declarations.empty? end |
#has_imports? ⇒ Boolean
25 26 27 |
# File 'lib/nidyx/objc/model_base.rb', line 25 def has_imports? !self.imports.empty? end |
#has_protocol_declarations? ⇒ Boolean
37 38 39 |
# File 'lib/nidyx/objc/model_base.rb', line 37 def has_protocol_declarations? !self.protocol_declarations.empty? end |
#has_protocol_forward_declarations? ⇒ Boolean
33 34 35 |
# File 'lib/nidyx/objc/model_base.rb', line 33 def has_protocol_forward_declarations? !self.protocol_forward_declarations.empty? end |
#json_model? ⇒ Boolean
45 46 47 |
# File 'lib/nidyx/objc/model_base.rb', line 45 def json_model? self.json_model end |
#no_owner? ⇒ Boolean
41 42 43 |
# File 'lib/nidyx/objc/model_base.rb', line 41 def no_owner? !self.owner end |