Module: Arrayish
- Included in:
- Metamuse::Collection
- Defined in:
- lib/arrayish.rb
Constant Summary collapse
- ARRAY_METHODS =
List of array methods (that are not in
Object) that need to be delegated tocollection. (Array.instance_methods - Object.instance_methods).map { |n| n.to_s }
- MUST_DEFINE =
List of additional methods that must be delegated to
collection. %w[to_a to_ary inspect]
Instance Method Summary collapse
-
#is_a?(klass) ⇒ Boolean
(also: #kind_of?)
Lie about our class.
Instance Method Details
#is_a?(klass) ⇒ Boolean Also known as: kind_of?
Lie about our class. Borrowed from Rake::FileList Note: Does not work for case equality (===)
19 20 21 |
# File 'lib/arrayish.rb', line 19 def is_a?(klass) klass == Array || super(klass) end |