Method: Bishl::ScheduleLine#method_missing
- Defined in:
- lib/schedule_line.rb
#method_missing(method, *arguments, &block) ⇒ Object
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/schedule_line.rb', line 19 def method_missing(method, *arguments, &block) #puts method.to_s match = method.to_s =~/create_/ #puts match if match name = method.to_s.split("_")[1] if(name=="position") self.send("position=", arguments.pop) else @team.send("#{name}=", arguments.pop) end else super end end |