Class: Sapphire::Plugins::Plugin

Inherits:
Object
  • Object
show all
Defined in:
lib/sapphire/Plugins/Plugin.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#methodObject (readonly)

Returns the value of attribute method.



7
8
9
# File 'lib/sapphire/Plugins/Plugin.rb', line 7

def method
  @method
end

#objectObject (readonly)

Returns the value of attribute object.



6
7
8
# File 'lib/sapphire/Plugins/Plugin.rb', line 6

def object
  @object
end

Class Method Details

.observeObject



14
15
16
# File 'lib/sapphire/Plugins/Plugin.rb', line 14

def self.observe()

end

Instance Method Details

#observes(hash) ⇒ Object



9
10
11
12
# File 'lib/sapphire/Plugins/Plugin.rb', line 9

def observes(hash)
  @object = hash[:class]
  @method = hash[:method]
end