Exception: Fortitude::Errors::NoReturnValueFromTag

Inherits:
Base
  • Object
show all
Defined in:
lib/fortitude/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(method_name) ⇒ NoReturnValueFromTag


132
133
134
135
136
137
138
139
140
# File 'lib/fortitude/errors.rb', line 132

def initialize(method_name)
  super(%{You're trying to call a method, #{method_name.inspect}, on the return value of a Fortitude
tag; tags don't return anything usable. (If you're migrating from Erector, this may
be a place where you used Erector syntax for classes or IDs -- e.g., p.some_class,
div.some_id!. Fortitude doesn't support these for important performance reasons;
you simply need to convert these to "p :class => :some_class" or
"div :id => :some_id".)})
  @method_name = method_name
end

Instance Attribute Details

#method_nameObject (readonly)

Returns the value of attribute method_name


130
131
132
# File 'lib/fortitude/errors.rb', line 130

def method_name
  @method_name
end