Class: FoggyMirror::Blob

Inherits:
Struct
  • Object
show all
Defined in:
lib/foggy-mirror/blob.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(color:, **args) ⇒ Blob

Returns a new instance of Blob.



5
6
7
# File 'lib/foggy-mirror/blob.rb', line 5

def initialize(color:, **args)
  super color: Color.new(color), **args
end

Instance Attribute Details

#colorObject

Returns the value of attribute color

Returns:

  • (Object)

    the current value of color



4
5
6
# File 'lib/foggy-mirror/blob.rb', line 4

def color
  @color
end

#rObject

Returns the value of attribute r

Returns:

  • (Object)

    the current value of r



4
5
6
# File 'lib/foggy-mirror/blob.rb', line 4

def r
  @r
end

#xObject

Returns the value of attribute x

Returns:

  • (Object)

    the current value of x



4
5
6
# File 'lib/foggy-mirror/blob.rb', line 4

def x
  @x
end

#yObject

Returns the value of attribute y

Returns:

  • (Object)

    the current value of y



4
5
6
# File 'lib/foggy-mirror/blob.rb', line 4

def y
  @y
end