Method: Maglove::Engine::Scope#method_missing
- Defined in:
- lib/maglove/engine/scope.rb
#method_missing(name, *args, &block) ⇒ Object
50 51 52 53 54 55 56 57 58 59 |
# File 'lib/maglove/engine/scope.rb', line 50 def method_missing(name, *args, &block) if name.to_s.end_with?("_widget") and args.length <= 1 identifier = "legacy_#{name[0..-8]}".to_sym (identifier, args.first || {}, &block) elsif args.length == 0 and @variables.key?(name.to_sym) @variables[name.to_sym] else super end end |