lib/builders/basic_builder.rb
#Reads the data from <effect></effect> - node
#and creates a Effect - object from that data.
Reads the data from  - node
and creates a Effect - object from that data.
Reads the data from - node and creates a Effect - object from that data .
def read_effect(effect)
    name = effect.attribute("name")
    effect_start_point = effect.attribute("startPoint").to_s
    effect_end_point = effect.attribute("endPoint").to_s
    parameters = {}
    effect.each_element_with_text(){|param|
      param_name = param.attribute("name").to_s
      param_value = param.text
      parameters.merge!({param_name => param_value}) 
    }
    return Effect.new(name, effect_start_point, effect_end_point, parameters)
  end
def read_effect ( effect ) name = effect . attribute ( "name" ) effect_start_point = effect . attribute ( "startPoint" ) . to_s effect_end_point = effect . attribute ( "endPoint" ) . to_s parameters = { } effect . each_element_with_text ( ) { | param | param_name = param . attribute ( "name" ) . to_s param_value = param . text parameters . merge! ( { param_name => param_value } ) } return Effect . new ( name , effect_start_point , effect_end_point , parameters ) end
Reads the data from <effect></effect> - node
and creates a Effect - object from that data.
Reads the data from <effect > < / effect > - node and creates a Effect - object from that data .
#Add a new key-value - pair to existing hash
effect
<not_specific>