Module: Prelude::ProperList
- Included in:
- ProperRubyList
- Defined in:
- lib/prelude/proper_list.rb
Overview
$Id: proper_list.rb 34 2007-10-23 21:38:09Z prelude $
Requires (but does not implement) 4 functions a proper list just cannot do without.
Instance Method Summary collapse
Instance Method Details
#cons(v) ⇒ Object
30 31 32 |
# File 'lib/prelude/proper_list.rb', line 30 def cons(v) raise MissingMethodError.new("Method 'cons' is not implemented by #{self.class.name}") end |
#head ⇒ Object
34 35 36 |
# File 'lib/prelude/proper_list.rb', line 34 def head raise MissingMethodError.new("Method 'head' is not implemented by #{self.class.name}") end |
#null ⇒ Object
42 43 44 |
# File 'lib/prelude/proper_list.rb', line 42 def null raise MissingMethodError.new("Method 'null' is not implemented by #{self.class.name}") end |
#tail ⇒ Object
38 39 40 |
# File 'lib/prelude/proper_list.rb', line 38 def tail raise MissingMethodError.new("Method 'tail' is not implemented by #{self.class.name}") end |