class UIC::Application::StateMachine::UIC::Application::StateMachine::VisualTransitions
Public Class Methods
new(app_machine,visuals_el)
click to toggle source
# File lib/ruic/statemachine.rb, line 96 def initialize(app_machine,visuals_el) @machine = app_machine @wrap = visuals_el @by_el = {} end
Public Instance Methods
[](id)
click to toggle source
# File lib/ruic/statemachine.rb, line 104 def [](id) if el=@wrap.at("xmlns:transition[@ref='#{id}']") @by_el[el] ||= VisualTransition.new(el,@machine) end end
each() { |by_el ||= visual_transition| ... }
click to toggle source
# File lib/ruic/statemachine.rb, line 101 def each @wrap.xpath('xmlns:transition').each{ |el| yield @by_el[el] ||= VisualTransition.new(el,@machine) } end
length()
click to toggle source
# File lib/ruic/statemachine.rb, line 109 def length @wrap.xpath('count(xmlns:transition)').to_i end
Also aliased as: count