Class: Glimmer::DSL::PropertyExpression
Instance Method Summary
collapse
Methods inherited from Expression
#add_content, #textual?, #widget?
Instance Method Details
#can_interpret?(parent, keyword, *args, &block) ⇒ Boolean
6
7
8
9
10
11
12
|
# File 'lib/glimmer/dsl/property_expression.rb', line 6
def can_interpret?(parent, keyword, *args, &block)
block.nil? and
args.size > 0 and
parent.respond_to?(:set_attribute) and
parent.respond_to?(:has_attribute?) and
parent.has_attribute?(keyword, *args)
end
|
#interpret(parent, keyword, *args, &block) ⇒ Object
14
15
16
17
|
# File 'lib/glimmer/dsl/property_expression.rb', line 14
def interpret(parent, keyword, *args, &block)
parent.set_attribute(keyword, *args)
nil
end
|