$42 GRAYBYTE WORDPRESS FILE MANAGER $57

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.217.254 | ADMIN IP 216.73.216.180
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/opt/alt/ruby18/share/ri/1.8/system/Generator/

HOME
Current File : /opt/alt/ruby18/share/ri/1.8/system/Generator//cdesc-Generator.yaml
--- !ruby/object:RI::ClassDescription 
attributes: []

class_methods: 
- !ruby/object:RI::MethodSummary 
  name: new
comment: 
- !ruby/struct:SM::Flow::P 
  body: Generator converts an internal iterator (i.e. an Enumerable object) to an external iterator.
- !ruby/struct:SM::Flow::P 
  body: Note that it is not very fast since it is implemented using continuations, which are currently slow.
- !ruby/struct:SM::Flow::H 
  level: 2
  text: Example
- !ruby/struct:SM::Flow::VERB 
  body: "  require 'generator'\n\n  # Generator from an Enumerable object\n  g = Generator.new(['A', 'B', 'C', 'Z'])\n\n  while g.next?\n    puts g.next\n  end\n\n  # Generator from a block\n  g = Generator.new { |g|\n    for i in 'A'..'C'\n      g.yield i\n    end\n\n    g.yield 'Z'\n  }\n\n  # The same result as above\n  while g.next?\n    puts g.next\n  end\n"
constants: []

full_name: Generator
includes: 
- !ruby/object:RI::IncludedModule 
  name: Enumerable
instance_methods: 
- !ruby/object:RI::MethodSummary 
  name: current
- !ruby/object:RI::MethodSummary 
  name: each
- !ruby/object:RI::MethodSummary 
  name: end?
- !ruby/object:RI::MethodSummary 
  name: index
- !ruby/object:RI::MethodSummary 
  name: next
- !ruby/object:RI::MethodSummary 
  name: next?
- !ruby/object:RI::MethodSummary 
  name: pos
- !ruby/object:RI::MethodSummary 
  name: rewind
- !ruby/object:RI::MethodSummary 
  name: yield
name: Generator
superclass: Object


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
3 Mar 2024 10.50 PM
root / linksafe
0755
cdesc-Generator.yaml
1.396 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
current-i.yaml
0.246 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
each-i.yaml
0.272 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
end%3f-i.yaml
0.246 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
index-i.yaml
0.254 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
new-c.yaml
0.53 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
next%3f-i.yaml
0.256 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
next-i.yaml
0.258 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
pos-i.yaml
0.25 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
rewind-i.yaml
0.223 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
yield-i.yaml
0.238 KB
26 Jul 2023 1.47 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF