Class: Shoes::Mock::Rect

Inherits:
Object
  • Object
show all
Includes:
Clickable, CommonMethods
Defined in:
shoes-core/lib/shoes/mock/rect.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Clickable

#click, #release

Methods included from CommonMethods

#update_fill, #update_position, #update_stroke, #update_visibility

Constructor Details

#initialize(dsl, app, _opts = {}) ⇒ Rect

Returns a new instance of Rect


9
10
11
12
# File 'shoes-core/lib/shoes/mock/rect.rb', line 9

def initialize(dsl, app, _opts = {})
  @dsl = dsl
  @app = app
end

Instance Attribute Details

#appObject (readonly)

Returns the value of attribute app


14
15
16
# File 'shoes-core/lib/shoes/mock/rect.rb', line 14

def app
  @app
end

#dslObject (readonly)

Returns the value of attribute dsl


14
15
16
# File 'shoes-core/lib/shoes/mock/rect.rb', line 14

def dsl
  @dsl
end