Class: Phren::Synapse
- Inherits:
-
Object
- Object
- Phren::Synapse
- Defined in:
- lib/synapse.rb
Instance Attribute Summary collapse
-
#from ⇒ Object
readonly
Returns the value of attribute from.
-
#to ⇒ Object
readonly
Returns the value of attribute to.
-
#weight ⇒ Object
Returns the value of attribute weight.
Instance Method Summary collapse
-
#initialize(from, to, weight) ⇒ Synapse
constructor
A new instance of Synapse.
Constructor Details
#initialize(from, to, weight) ⇒ Synapse
Returns a new instance of Synapse.
11 12 13 14 15 |
# File 'lib/synapse.rb', line 11 def initialize(from, to, weight) @from = from @to = to @weight = weight end |
Instance Attribute Details
#from ⇒ Object (readonly)
Returns the value of attribute from.
6 7 8 |
# File 'lib/synapse.rb', line 6 def from @from end |
#to ⇒ Object (readonly)
Returns the value of attribute to.
6 7 8 |
# File 'lib/synapse.rb', line 6 def to @to end |
#weight ⇒ Object
Returns the value of attribute weight.
5 6 7 |
# File 'lib/synapse.rb', line 5 def weight @weight end |