class Estreet::ThrowStatement

Public Class Methods

error(expression) click to toggle source
# File lib/estreet/exceptions.rb, line 11
def self.error(expression)
  new(NewExpression.new(Identifier['Error'], [expression.to_expression]))
end
new(argument) click to toggle source
# File lib/estreet/exceptions.rb, line 3
def initialize(argument)
  @argument = argument.to_expression
end

Public Instance Methods

attributes() click to toggle source
Calls superclass method
# File lib/estreet/exceptions.rb, line 7
def attributes
  super.merge(argument: @argument)
end