Class: Putter::FollowerData
- Inherits:
-
Object
- Object
- Putter::FollowerData
- Defined in:
- lib/putter/follower_data.rb
Instance Attribute Summary collapse
-
#label ⇒ Object
Returns the value of attribute label.
Instance Method Summary collapse
- #add_method?(method) ⇒ Boolean
-
#initialize(object, proxy, options) ⇒ FollowerData
constructor
A new instance of FollowerData.
Constructor Details
#initialize(object, proxy, options) ⇒ FollowerData
Returns a new instance of FollowerData.
5 6 7 8 9 |
# File 'lib/putter/follower_data.rb', line 5 def initialize(object, proxy, ) @proxy = proxy @proxied_methods = [:methods] || [] set_label([:label], object) end |
Instance Attribute Details
#label ⇒ Object
Returns the value of attribute label.
3 4 5 |
# File 'lib/putter/follower_data.rb', line 3 def label @label end |
Instance Method Details
#add_method?(method) ⇒ Boolean
11 12 13 14 15 16 17 18 |
# File 'lib/putter/follower_data.rb', line 11 def add_method?(method) return false if @proxy.instance_methods.include?(method) return true if @proxied_methods.include?(method) return true if is_whitelisted_method?(method) return false if is_blacklisted_method?(method) return false if is_ignored_method?(method) return true if @proxied_methods.empty? end |