Class: NilClass
Instance Method Summary collapse
- #each ⇒ Object
- #empty? ⇒ Boolean
- #first ⇒ Object
- #next ⇒ Object
- #rest ⇒ Object
-
#to_seq ⇒ Object
Seq Methods Many functions that return seqs occasionally return nil, so it’s convenient if nil can respond to some of the same methods as seqs.
Methods included from Enumerable
Instance Method Details
#each ⇒ Object
239 240 |
# File 'lib/apricot/ruby_ext.rb', line 239 def each end |
#empty? ⇒ Boolean
242 243 244 |
# File 'lib/apricot/ruby_ext.rb', line 242 def empty? true end |
#first ⇒ Object
254 255 256 |
# File 'lib/apricot/ruby_ext.rb', line 254 def first nil end |
#next ⇒ Object
258 259 260 |
# File 'lib/apricot/ruby_ext.rb', line 258 def next nil end |
#rest ⇒ Object
262 263 264 |
# File 'lib/apricot/ruby_ext.rb', line 262 def rest Apricot::List::EMPTY_LIST end |
#to_seq ⇒ Object
Seq Methods Many functions that return seqs occasionally return nil, so it’s convenient if nil can respond to some of the same methods as seqs.
250 251 252 |
# File 'lib/apricot/ruby_ext.rb', line 250 def to_seq nil end |