Class: CPEE::Transformation::Link
- Inherits:
-
Object
- Object
- CPEE::Transformation::Link
- Defined in:
- lib/cpee/transformation/structures.rb
Overview
}}}
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#condition ⇒ Object
readonly
Returns the value of attribute condition.
-
#from ⇒ Object
{{{.
-
#otherwise ⇒ Object
readonly
Returns the value of attribute otherwise.
-
#to ⇒ Object
{{{.
Instance Method Summary collapse
-
#initialize(from, to, cond = nil, otherwise = false, id = nil) ⇒ Link
constructor
A new instance of Link.
Constructor Details
#initialize(from, to, cond = nil, otherwise = false, id = nil) ⇒ Link
Returns a new instance of Link.
75 76 77 78 79 80 81 82 |
# File 'lib/cpee/transformation/structures.rb', line 75 def initialize(from,to,cond=nil,otherwise=false,id=nil) @from = from @to = to @id = id @otherwise = otherwise @condition = cond @attributes = {} end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
74 75 76 |
# File 'lib/cpee/transformation/structures.rb', line 74 def attributes @attributes end |
#condition ⇒ Object (readonly)
Returns the value of attribute condition.
74 75 76 |
# File 'lib/cpee/transformation/structures.rb', line 74 def condition @condition end |
#from ⇒ Object
{{{
73 74 75 |
# File 'lib/cpee/transformation/structures.rb', line 73 def from @from end |
#otherwise ⇒ Object (readonly)
Returns the value of attribute otherwise.
74 75 76 |
# File 'lib/cpee/transformation/structures.rb', line 74 def otherwise @otherwise end |
#to ⇒ Object
{{{
73 74 75 |
# File 'lib/cpee/transformation/structures.rb', line 73 def to @to end |