Exception: Twig::Branch::EmptyPropertyNameError

Inherits:
ArgumentError
  • Object
show all
Defined in:
lib/twig/branch.rb

Constant Summary collapse

DEFAULT_MESSAGE =
'Branch property names cannot be empty strings.'

Instance Method Summary collapse

Constructor Details

#initialize(message = nil) ⇒ EmptyPropertyNameError

Returns a new instance of EmptyPropertyNameError.



11
12
13
14
# File 'lib/twig/branch.rb', line 11

def initialize(message = nil)
  message ||= DEFAULT_MESSAGE
  super
end