Class: Bones::Copy
- Inherits:
-
Object
- Object
- Bones::Copy
- Defined in:
- lib/bones/copy.rb
Overview
Class copyin/out
Instance Attribute Summary collapse
-
#deadline ⇒ Object
Returns the value of attribute deadline.
-
#direction ⇒ Object
Returns the value of attribute direction.
-
#domain ⇒ Object
Returns the value of attribute domain.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
- #get_definition(array_definition, type) ⇒ Object
- #get_function_call(type) ⇒ Object
-
#initialize(name, domain, deadline, direction, id) ⇒ Copy
constructor
A new instance of Copy.
Constructor Details
#initialize(name, domain, deadline, direction, id) ⇒ Copy
Returns a new instance of Copy.
8 9 10 11 12 13 14 |
# File 'lib/bones/copy.rb', line 8 def initialize(name,domain,deadline,direction,id) @name = name @domain = domain @deadline = deadline @direction = direction @id = id end |
Instance Attribute Details
#deadline ⇒ Object
Returns the value of attribute deadline.
6 7 8 |
# File 'lib/bones/copy.rb', line 6 def deadline @deadline end |
#direction ⇒ Object
Returns the value of attribute direction.
6 7 8 |
# File 'lib/bones/copy.rb', line 6 def direction @direction end |
#domain ⇒ Object
Returns the value of attribute domain.
6 7 8 |
# File 'lib/bones/copy.rb', line 6 def domain @domain end |
#id ⇒ Object
Returns the value of attribute id.
6 7 8 |
# File 'lib/bones/copy.rb', line 6 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
6 7 8 |
# File 'lib/bones/copy.rb', line 6 def name @name end |
Instance Method Details
#get_definition(array_definition, type) ⇒ Object
16 17 18 19 |
# File 'lib/bones/copy.rb', line 16 def get_definition(array_definition,type) array_definition = '' if type == 'free' || type == 'alloc' 'void bones_'+type+'_'+@id+'_'+@name+'('+array_definition+');' end |
#get_function_call(type) ⇒ Object
21 22 23 |
# File 'lib/bones/copy.rb', line 21 def get_function_call(type) 'bones_'+type+'_'+@id+'_'+@name+'();' end |