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.
-
#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.
Instance Method Summary collapse
- #has_imports? ⇒ 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.
9 10 11 12 13 14 15 16 17 |
# File 'lib/nidyx/objc/model_base.rb', line 9 def initialize(name, ) @name = name = [:author] @owner = [:company] @project = [:project] @comments = [:comments] @json_model = [:objc][:json_model] if [:objc] @imports = [] 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 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 |
Instance Method Details
#has_imports? ⇒ Boolean
19 20 21 |
# File 'lib/nidyx/objc/model_base.rb', line 19 def has_imports? !self.imports.empty? end |
#json_model? ⇒ Boolean
27 28 29 |
# File 'lib/nidyx/objc/model_base.rb', line 27 def json_model? self.json_model end |
#no_owner? ⇒ Boolean
23 24 25 |
# File 'lib/nidyx/objc/model_base.rb', line 23 def no_owner? !self.owner end |