Class: Glimmer::DSL::MenuBarExpression
- Inherits:
-
StaticExpression
- Object
- Expression
- StaticExpression
- Glimmer::DSL::MenuBarExpression
- Includes:
- ParentExpression
- Defined in:
- lib/glimmer/dsl/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 StaticExpression
Methods inherited from Expression
#add_content, #textual?, #widget?
Instance Method Details
#can_interpret?(parent, keyword, *args, &block) ⇒ Boolean
13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/glimmer/dsl/menu_bar_expression.rb', line 13 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 |