Class: Comet::Rules::Error

Inherits:
Object
  • Object
show all
Defined in:
lib/comet/rules/error.rb

Instance Method Summary collapse

Constructor Details

#initialize(message) ⇒ Error

Returns a new instance of Error.



4
5
6
# File 'lib/comet/rules/error.rb', line 4

def initialize(message)
  @message = message
end

Instance Method Details

#commandsObject



20
21
22
# File 'lib/comet/rules/error.rb', line 20

def commands
  {}
end

#contentsObject



12
13
14
# File 'lib/comet/rules/error.rb', line 12

def contents
  ["$(error #{pretty_message})"]
end

#rulesObject



16
17
18
# File 'lib/comet/rules/error.rb', line 16

def rules
  []
end

#targetObject



8
9
10
# File 'lib/comet/rules/error.rb', line 8

def target
  nil
end