Method: Innate::Node#needs_method?

Defined in:
lib/innate/node.rb

#needs_method?true, false

Whether an Action can be built without a method.

The default is to allow actions that use only a view template, but you might want to turn this on, for example if you have partials in your view directories.

Examples:

turning needs_method? on


class Foo
  Innate.node('/')
end

Foo.needs_method? # => true
Foo.trait :needs_method => false
Foo.needs_method? # => false

Returns:

  • (true, false)

    (false)

See Also:

  • Innate::Node.{Node{Node#fill_action}


998
999
1000
# File 'lib/innate/node.rb', line 998

def needs_method?
  ancestral_trait[:needs_method]
end