lib/glimmer/dsl/opal/property_expression.rb in glimmer-dsl-opal-0.1.0 vs lib/glimmer/dsl/opal/property_expression.rb in glimmer-dsl-opal-0.2.0
- old
+ new
@@ -5,15 +5,18 @@
module Opal
class PropertyExpression < StaticExpression
include TopLevelExpression
def can_interpret?(parent, keyword, *args, &block)
- parent and parent.respond_to?(:set_attribute) and keyword and block.nil?
+ parent and
+ parent.respond_to?(:set_attribute) and
+ keyword and
+ block.nil?
end
def interpret(parent, keyword, *args, &block)
if keyword == 'text' # TODO move into property converters in element proxy
- args = [args.first.to_s.gsub('&', '') ]
+ args = [args.first.to_s.gsub('&', '')]
end
parent.set_attribute(keyword, *args)
args.first.to_s
end
end