Class: Defgen::GetterDecorator
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Defgen::GetterDecorator
- Defined in:
- lib/defgen/decorators/getter_decorator.rb
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#get_binding ⇒ Object
21 22 23 |
# File 'lib/defgen/decorators/getter_decorator.rb', line 21 def get_binding binding end |
#objc_type ⇒ Object
5 6 7 |
# File 'lib/defgen/decorators/getter_decorator.rb', line 5 def objc_type super.strip end |
#parameter ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/defgen/decorators/getter_decorator.rb', line 13 def parameter if attributes.getter.nil? || attributes.getter.empty? super else attributes.getter end end |
#prefix ⇒ Object
9 10 11 |
# File 'lib/defgen/decorators/getter_decorator.rb', line 9 def prefix super.downcase end |