<% if options.in_module %> <% if object.constructor? %> self.new(<%= format_args(object) %>) <%= format_block(object) %> <% else %> <%= object.scope == :class ? 'self.' : '' %><%= object.is_attribute? ? object.name.to_s.sub(/=$/, '') : object.name %><% if object.is_attribute? %> <% rw = object.attr_info %> <% if rw && rw[:read] && !rw[:write] %>readonly <% elsif rw && !rw[:read] && rw[:write] %>writeonly <% end %> <% else %>(<%= format_args(object) %>) <%= format_block(object) %><% end %> <% end %> <% else %> def <%= options.including_object.relative_path(object.namespace) %><%= object.send(:sep) %><%= object.name %>(<%= format_args(object) %>) <%= format_block(object) %> <% end %> <% if object.has_tag?(:since) && object.namespace.tag(:since) != object.tag(:since) %>since <%= object.tag(:since).text %><% end %>
<%= yieldall %>