Class: Glimmer::DSL::SWT::MenuBarExpression
- Inherits:
-
Glimmer::DSL::StaticExpression
- Object
- Expression
- Glimmer::DSL::StaticExpression
- Glimmer::DSL::SWT::MenuBarExpression
- Includes:
- ParentExpression
- Defined in:
- lib/glimmer/dsl/swt/menu_bar_expression.rb
Instance Method Summary collapse
- #can_interpret?(parent, keyword, *args, &block) ⇒ Boolean
- #interpret(parent, keyword, *args, &block) ⇒ Object
Methods included from ParentExpression
Methods inherited from Glimmer::DSL::StaticExpression
Methods inherited from Expression
#add_content, dsl, #textual?, #widget?
Instance Method Details
#can_interpret?(parent, keyword, *args, &block) ⇒ Boolean
14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/glimmer/dsl/swt/menu_bar_expression.rb', line 14 def can_interpret?(parent, keyword, *args, &block) initial_condition = (keyword == 'menu_bar') if initial_condition if parent..is_a?(Shell) return true else raise Glimmer::Error, "menu_bar may only be nested under a shell!" end end false end |