burtlo / yard-cucumber

YARD extension that adds Cucumber Features, Tags, and Step Definitions
MIT License
129 stars 46 forks source link

NoMethodError: undefined method `parameters' for #<yardoc class CustomerUsageBehavior> #18

Closed bfaloona closed 12 years ago

bfaloona commented 13 years ago

Repro:

CustomerUsageBehavior = Struct.new(:weight, :days, :time, :location, :other_party, :usage_type, :direction, :quantity)

Result:

[error]: Exception occurred while generating 'CustomerUsageBehavior.html'
[error]: NoMethodError: undefined method `parameters' for #<yardoc class CustomerUsageBehavior>
[error]: Stack trace:
        /usr/local/lib/ruby/gems/1.8/gems/yard-0.7.1/lib/yard/code_objects/base.rb:328:in `method_missing'
        /usr/local/lib/ruby/gems/1.8/gems/yard-0.7.1/templates/default/tags/html/tag.erb:11:in `_erb_cache_41'
        /usr/local/lib/ruby/gems/1.8/gems/yard-0.7.1/templates/default/tags/html/tag.erb:3:in `each'
        /usr/local/lib/ruby/gems/1.8/gems/yard-0.7.1/templates/default/tags/html/tag.erb:3:in `_erb_cache_41'
        /usr/local/lib/ruby/gems/1.8/gems/yard-0.7.1/lib/yard/templates/template.rb:238:in `send'
        /usr/local/lib/ruby/gems/1.8/gems/yard-0.7.1/lib/yard/templates/template.rb:238:in `erb'
burtlo commented 13 years ago

I miss that Struct

burtlo commented 12 years ago

Re-open if this is still an issue.