Class: Notiffany::Notifier::Emacs::Client
- Inherits:
-
Object
- Object
- Notiffany::Notifier::Emacs::Client
- Defined in:
- lib/notiffany/notifier/emacs/client.rb
Overview
Handles evaluating ELISP code in Emacs via Erb
Defined Under Namespace
Classes: Elisp
Instance Attribute Summary collapse
-
#elisp_erb ⇒ Object
readonly
Returns the value of attribute elisp_erb.
Instance Method Summary collapse
- #available? ⇒ Boolean
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
- #notify(color, bgcolor, message = nil) ⇒ Object
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
28 29 30 31 32 |
# File 'lib/notiffany/notifier/emacs/client.rb', line 28 def initialize() @client = [:client] @elisp_erb = [:elisp_erb] raise ArgumentError, 'No :elisp_erb option given!' unless elisp_erb end |
Instance Attribute Details
#elisp_erb ⇒ Object (readonly)
Returns the value of attribute elisp_erb.
7 8 9 |
# File 'lib/notiffany/notifier/emacs/client.rb', line 7 def elisp_erb @elisp_erb end |