Class: IB::OCInterface::Action
- Inherits:
-
Struct
- Object
- Struct
- IB::OCInterface::Action
- Defined in:
- lib/ib/oc_interface.rb
Instance Attribute Summary collapse
-
#arg ⇒ Object
Returns the value of attribute arg.
-
#return_type ⇒ Object
Returns the value of attribute return_type.
-
#variable ⇒ Object
Returns the value of attribute variable.
Instance Method Summary collapse
Instance Attribute Details
#arg ⇒ Object
Returns the value of attribute arg
14 15 16 |
# File 'lib/ib/oc_interface.rb', line 14 def arg @arg end |
#return_type ⇒ Object
Returns the value of attribute return_type
14 15 16 |
# File 'lib/ib/oc_interface.rb', line 14 def return_type @return_type end |
#variable ⇒ Object
Returns the value of attribute variable
14 15 16 |
# File 'lib/ib/oc_interface.rb', line 14 def variable @variable end |
Instance Method Details
#to_declare ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/ib/oc_interface.rb', line 15 def to_declare if arg if arg =~ /story_?board/i "#{variable}:(UIStoryBoard *) #{arg}" else "#{variable}:(#{return_type ? "#{return_type}*" : 'id'}) #{arg}" end else "#{variable}" end end |