Class: Shomen::Model::Interface

Inherits:
AbstractPrime show all
Defined in:
lib/shomen/model/interface.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from AbstractPrime

#[], #[]=, attr_accessor, #to_h, type

Constructor Details

#initialize(settings = {}) ⇒ Interface

TODO: validate that there is an interface image.



11
12
13
14
# File 'lib/shomen/model/interface.rb', line 11

def initialize(settings={})
  #@table = {'arguments'=>[], 'parameters'=>[]}
  super(settings)
end

Instance Attribute Details

#argumentsObject

Arguments breakdown.



20
21
22
# File 'lib/shomen/model/interface.rb', line 20

def arguments
  @arguments
end

#blockObject

Block



26
27
28
# File 'lib/shomen/model/interface.rb', line 26

def block
  @block
end

#parametersObject

Parameters breakdown.



23
24
25
# File 'lib/shomen/model/interface.rb', line 23

def parameters
  @parameters
end

#returnsObject

Return value.



29
30
31
# File 'lib/shomen/model/interface.rb', line 29

def returns
  @returns
end

#signatureObject

The source code “image” of the method’s inteface.



17
18
19
# File 'lib/shomen/model/interface.rb', line 17

def signature
  @signature
end