That's much better, only 83 lines include respond_to? and only 48
match 'if .*?respond_to'
there's magic variable another on user, login_count
typed_id? appears to be used in the input fields but not sure if
that's default hobo method and/or something that can be overridden to
do something special.
hobo/lib/hobo/accessible_associations.rb:52:
record.send(method, owner) if record.respond_to? method
hobo/lib/hobo/user.rb:85: if u.respond_to?(:last_login_at) ||
u.respond_to?(:login_count)
hobo/lib/hobo/user.rb:86: u.last_login_at = Time.now if
u.respond_to?(:last_login_at)
hobo/lib/hobo/user.rb:87: u.login_count =
(u.login_count.to_i + 1) if u.respond_to?(:login_count)
hobo/lib/hobo/model_controller.rb:817: #
this.user_view(current_user) if this && this.respond_to?(:user_view)
hobo/lib/hobo/hobo_helper.rb:61: if obj.respond_to?
(:member_class) && obj.respond_to?(:origin)
hobo/lib/hobo/hobo_helper.rb:95: elsif obj.respond_to?
(:member_class)
hobo/lib/hobo/hobo_helper.rb:152: "#{type.typed_id}_#{field}" if
type.respond_to?(:typed_id)
hobo/lib/hobo/hobo_helper.rb:166: if enum.respond_to?
(:each_pair)
hobo/lib/hobo/hobo_helper.rb:195: if
scope.repeat_collection.respond_to? :each_pair
hobo/lib/hobo/hobo_helper.rb:204: if
scope.repeat_collection.respond_to? :each_pair
hobo/lib/hobo/hobo_helper.rb:246: if
this.respond_to?(:editable_by?) && !this_field_reflection
hobo/lib/hobo/hobo_helper.rb:318: if !object.respond_to?
(:viewable_by?)
hobo/lib/hobo/hobo_helper.rb:322: if field.is_one_of?(Symbol,
String) && (v = object.send(field)) && v.respond_to?(:viewable_by?)
hobo/lib/hobo/hobo_helper.rb:394: if model_or_assoc.respond_to?
(:new_candidate)
hobo/lib/hobo/hobo_helper.rb:461: if target.respond_to?
(:member_class) && (origin = target.try.origin)
hobo/lib/hobo/scopes/named_scope_extensions.rb:16: if
respond_to?(method) && scopes.include?(method)
hobo/lib/hobo/scopes/association_proxy_extensions.rb:14: if
scope_name.respond_to? :map
hobo/lib/hobo/scopes/association_proxy_extensions.rb:54:
(@reflection.klass.create_automatic_scope(method) if
@reflection.klass.respond_to?(:create_automatic_scope))
hobo/lib/hobo/scopes/automatic_scopes.rb:258: elsif
type.respond_to?(:table_name) && (name = type.name_attribute)
hobo/lib/hobo/model.rb:52: if defined?(WillPaginate::Collection)
&& !WillPaginate::Collection.respond_to?(:member_class)
hobo/lib/hobo/model.rb:168: send(:login_attribute=,
name.to_sym, validate) if options.delete(:login) && respond_to?
(:login_attribute=)
hobo/lib/hobo/permissions.rb:249: return false if !respond_to?
("#{attribute}=")
hobo/lib/hobo/dryml.rb:41: if
ActionView::Template.respond_to? :exempt_from_layout
hobo/lib/hobo/dryml.rb:98: filename ||= if
view.view_paths.respond_to? :find_template
hobo/lib/hobo/lifecycles.rb:78: if self.class.has_lifecycle? &&
(step = lifecycle.active_step) && respond_to?(cb =
"validate_on_#{step.name}")
hobo/lib/hobo/lifecycles/actions.rb:44: elsif
value.respond_to?(:include?)
hobofields/lib/hobo_fields/model_extensions.rb:50:
validates_each(*args) {|record, field, value| msg = value.validate and
record.errors.add(field, msg) if value.respond_to?(:validate) }
hobofields/lib/hobo_fields/textile_string.rb:14:
textilized.hard_breaks = true if textilized.respond_to?
("hard_breaks=")
hobosupport/lib/hobo_support/methodcall.rb:91: @target.send(name,
*args, &b) if @target.respond_to?(name)
hobosupport/lib/hobo_support/module.rb:70: set_field_type(n =>
TrueClass) if respond_to?(:set_field_type)
hobosupport/lib/hobo_support/array.rb:21: if !respond_to? :wrap
hobosupport/lib/hobo_support/array.rb:29: if object.respond_to?
(:to_ary)
On Feb 5, 8:20 am, Matt Jones <[email protected]> wrote:
> On Feb 4, 2010, at 6:54 PM, kevinpfromnm wrote:
>
> > I'm not sure actually. Maybe half source dive, half dev brain pick.
> > Grab a list of the methods in hobo plugin (just the names), remove the
> > ones that show up anywhere in the cookbook and devs can note which
> > ones they actually use for documenting at a later time.
>
> > Hmm.. that doesn't help with the variable magic though does it?
>
> The red flag for the magic variables stuff is typically respond_to?,
> so that might help finding some of these things.
>
> --Matt Jones
--
You received this message because you are subscribed to the Google Groups "Hobo
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/hobousers?hl=en.