Class: Glimmer::DSL::Tk::MessageBoxExpression
- Inherits:
-
StaticExpression
- Object
- StaticExpression
- Glimmer::DSL::Tk::MessageBoxExpression
- Defined in:
- lib/glimmer/dsl/tk/message_box_expression.rb
Instance Method Summary collapse
Instance Method Details
#interpret(parent, keyword, *args, &block) ⇒ Object
29 30 31 32 33 34 35 |
# File 'lib/glimmer/dsl/tk/message_box_expression.rb', line 29 def interpret(parent, keyword, *args, &block) if args.first.is_a?(Hash) args.first[:parent] = args.first[:parent].tk if args.first[:parent].is_a?(Glimmer::Tk::RootProxy) args.first[:title] = args.first.delete(:text) if args.first.keys.include?(:text) end ::Tk::(*args) end |