PATH: //opt/alt/ruby31/share/gems/gems/rdoc-6.4.1.1/lib/rdoc
FILE_BARU
CREATE
FOLDER_BARU
MKDIR
UPLOAD_FILE
GO
[ .. KEMBALI ]
📄 alias.rb
↓
X
📄 anon_class.rb
↓
X
📄 any_method.rb
↓
X
📄 attr.rb
↓
X
📄 class_module.rb
↓
X
📄 code_object.rb
↓
X
📄 code_objects.rb
↓
X
📄 comment.rb
↓
X
📄 constant.rb
↓
X
📁 context/
X
📄 context.rb
↓
X
📄 cross_reference.rb
↓
X
📄 encoding.rb
↓
X
📄 erb_partial.rb
↓
X
📄 erbio.rb
↓
X
📄 extend.rb
↓
X
📁 generator/
X
📄 generator.rb
↓
X
📄 ghost_method.rb
↓
X
📁 i18n/
X
📄 i18n.rb
↓
X
📄 include.rb
↓
X
📄 known_classes.rb
↓
X
📁 markdown/
X
📄 markdown.rb
↓
X
📁 markup/
X
📄 markup.rb
↓
X
📄 meta_method.rb
↓
X
📄 method_attr.rb
↓
X
📄 mixin.rb
↓
X
📄 normal_class.rb
↓
X
📄 normal_module.rb
↓
X
📄 options.rb
↓
X
📁 parser/
X
📄 parser.rb
↓
X
📁 rd/
X
📄 rd.rb
↓
X
📄 rdoc.rb
↓
X
📄 require.rb
↓
X
📁 ri/
X
📄 ri.rb
↓
X
📄 rubygems_hook.rb
↓
X
📄 servlet.rb
↓
X
📄 single_class.rb
↓
X
📁 stats/
X
📄 stats.rb
↓
X
📄 store.rb
↓
X
📄 task.rb
↓
X
📄 text.rb
↓
X
📄 token_stream.rb
↓
X
📄 tom_doc.rb
↓
X
📄 top_level.rb
↓
X
📄 version.rb
↓
X
SAVING...
BERHASIL DIUBAH!
EDITING: erbio.rb
# frozen_string_literal: true require 'erb' ## # A subclass of ERB that writes directly to an IO. Credit to Aaron Patterson # and Masatoshi SEKI. # # To use: # # erbio = RDoc::ERBIO.new '<%= "hello world" %>', nil, nil # # File.open 'hello.txt', 'w' do |io| # erbio.result binding # end # # Note that binding must enclose the io you wish to output on. class RDoc::ERBIO < ERB ## # Defaults +eoutvar+ to 'io', otherwise is identical to ERB's initialize def initialize str, safe_level = nil, legacy_trim_mode = nil, legacy_eoutvar = 'io', trim_mode: nil, eoutvar: 'io' if RUBY_VERSION >= '2.6' super(str, trim_mode: trim_mode, eoutvar: eoutvar) else super(str, safe_level, legacy_trim_mode, legacy_eoutvar) end end ## # Instructs +compiler+ how to write to +io_variable+ def set_eoutvar compiler, io_variable compiler.put_cmd = "#{io_variable}.write" compiler.insert_cmd = "#{io_variable}.write" compiler.pre_cmd = [] compiler.post_cmd = [] end end
SIMPAN PERUBAHAN