Class: PPCurses::Notification

Inherits:
Object
  • Object
show all
Defined in:
lib/ppcurses/notification_centre.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, object) ⇒ Notification

Returns a new instance of Notification.



55
56
57
58
# File 'lib/ppcurses/notification_centre.rb', line 55

def initialize( name, object )
  @name = name
  @object = object
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



52
53
54
# File 'lib/ppcurses/notification_centre.rb', line 52

def name
  @name
end

#objectObject (readonly)

Returns the value of attribute object.



53
54
55
# File 'lib/ppcurses/notification_centre.rb', line 53

def object
  @object
end