Class: IB::OCInterface::Outlet

Inherits:
Struct
  • Object
show all
Defined in:
lib/ib/oc_interface.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



6
7
8
# File 'lib/ib/oc_interface.rb', line 6

def type
  @type
end

#variableObject

Returns the value of attribute variable

Returns:

  • (Object)

    the current value of variable



6
7
8
# File 'lib/ib/oc_interface.rb', line 6

def variable
  @variable
end

Instance Method Details

#formated_typeObject



7
8
9
# File 'lib/ib/oc_interface.rb', line 7

def formated_type
  type == "id" ? type : "#{type} *"
end