Class: CPEE::Transformation::Link

Inherits:
Object
  • Object
show all
Defined in:
lib/cpee/transformation/structures.rb

Overview

}}}

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#attributesObject (readonly)

Returns the value of attribute attributes.



74
75
76
# File 'lib/cpee/transformation/structures.rb', line 74

def attributes
  @attributes
end

#conditionObject (readonly)

Returns the value of attribute condition.



74
75
76
# File 'lib/cpee/transformation/structures.rb', line 74

def condition
  @condition
end

#fromObject

{{{



73
74
75
# File 'lib/cpee/transformation/structures.rb', line 73

def from
  @from
end

#otherwiseObject (readonly)

Returns the value of attribute otherwise.



74
75
76
# File 'lib/cpee/transformation/structures.rb', line 74

def otherwise
  @otherwise
end

#toObject

{{{



73
74
75
# File 'lib/cpee/transformation/structures.rb', line 73

def to
  @to
end