Class: Shomen::Model::Interface
- Inherits:
-
AbstractPrime
- Object
- AbstractPrime
- Shomen::Model::Interface
- Defined in:
- lib/shomen/model/interface.rb
Instance Attribute Summary collapse
-
#arguments ⇒ Object
Arguments breakdown.
-
#block ⇒ Object
Block.
-
#parameters ⇒ Object
Parameters breakdown.
-
#returns ⇒ Object
Return value.
-
#signature ⇒ Object
The source code “image” of the method’s inteface.
Instance Method Summary collapse
-
#initialize(settings = {}) ⇒ Interface
constructor
TODO: validate that there is an interface image.
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
#arguments ⇒ Object
Arguments breakdown.
20 21 22 |
# File 'lib/shomen/model/interface.rb', line 20 def arguments @arguments end |
#block ⇒ Object
Block
26 27 28 |
# File 'lib/shomen/model/interface.rb', line 26 def block @block end |
#parameters ⇒ Object
Parameters breakdown.
23 24 25 |
# File 'lib/shomen/model/interface.rb', line 23 def parameters @parameters end |
#returns ⇒ Object
Return value.
29 30 31 |
# File 'lib/shomen/model/interface.rb', line 29 def returns @returns end |
#signature ⇒ Object
The source code “image” of the method’s inteface.
17 18 19 |
# File 'lib/shomen/model/interface.rb', line 17 def signature @signature end |