Class: Object
- Inherits:
- BasicObject
- Includes:
- Full, Tins::Attempt, Tins::DeepDup, Tins::Null::Kernel, Tins::P, Tins::RequireMaybe
- Defined in:
- lib/tins/xt/p.rb,
lib/tins/xt/irb.rb,
lib/tins/xt/full.rb,
lib/tins/xt/null.rb,
lib/tins/xt/named.rb,
lib/tins/xt/attempt.rb,
lib/tins/xt/deep_dup.rb,
lib/tins/xt/require_maybe.rb
Instance Method Summary collapse
Methods included from Tins::RequireMaybe
Methods included from Tins::DeepDup
Methods included from Tins::Attempt
Methods included from Tins::Null::Kernel
Instance Method Details
#examine(binding = TOPLEVEL_BINDING) ⇒ Object
19 20 21 |
# File 'lib/tins/xt/irb.rb', line 19 def examine(binding = TOPLEVEL_BINDING) IRB.examine(binding) end |
#named(name, method, *args, &block) ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/tins/xt/named.rb', line 5 def named(name, method, *args, &named_block) extend Module.new { define_method(name) do |*rest, &block| block = named_block if named_block __send__(method, *(args + rest), &block) end } end |