Class: Defgen::GetterDecorator

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/defgen/decorators/getter_decorator.rb

Direct Known Subclasses

SetterDecorator

Instance Method Summary collapse

Instance Method Details

#get_bindingObject



21
22
23
# File 'lib/defgen/decorators/getter_decorator.rb', line 21

def get_binding
  binding
end

#objc_typeObject



5
6
7
# File 'lib/defgen/decorators/getter_decorator.rb', line 5

def objc_type
  super.strip
end

#parameterObject



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

#prefixObject



9
10
11
# File 'lib/defgen/decorators/getter_decorator.rb', line 9

def prefix
  super.downcase
end