Skip to content

Commit

Permalink
Update cursor_expression.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyObtiva committed Aug 3, 2020
1 parent c7b8c91 commit f25b94e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/glimmer/dsl/swt/cursor_expression.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ module SWT
class CursorExpression < Expression
include TopLevelExpression

def can_interpret?(parent, keyword, *args, &block)
def can_interpret?(parent, keyword, *args, &block)
keyword.to_s == 'cursor' and
(parent.nil? or !parent.respond_to?('cursor')) and
args.size == 1 and
(args.first.is_a?(Integer) or textual?(args.first))
Expand Down

0 comments on commit f25b94e

Please sign in to comment.