Class: Object

Inherits:
BasicObject
Includes:
DeepConstGet, Full, Tins::AskAndSend, Tins::Attempt, Tins::BlockSelf, Tins::CasePredicate, Tins::Complete, Tins::DeepDup, Tins::Deflect, Tins::Eigenclass, Tins::Expose, Tins::IfPredicate, Tins::Interpreter, Tins::Null::Kernel, Tins::P, Tins::RequireMaybe, Tins::Responding, Tins::TempIO, Tins::ThreadGlobal, Tins::ThreadLocal, Tins::To
Defined in:
lib/tins/xt/p.rb,
lib/tins/xt/to.rb,
lib/tins/xt/irb.rb,
lib/tins/xt/full.rb,
lib/tins/xt/null.rb,
lib/tins/xt/named.rb,
lib/tins/xt/dslkit.rb,
lib/tins/xt/expose.rb,
lib/tins/xt/attempt.rb,
lib/tins/xt/temp_io.rb,
lib/tins/xt/complete.rb,
lib/tins/xt/deep_dup.rb,
lib/tins/xt/responding.rb,
lib/tins/xt/ask_and_send.rb,
lib/tins/xt/if_predicate.rb,
lib/tins/xt/require_maybe.rb,
lib/tins/xt/case_predicate.rb,
lib/tins/xt/deep_const_get.rb

Instance Method Summary collapse

Methods included from Tins::CasePredicate

#case?

Methods included from Tins::RequireMaybe

#require_maybe

Methods included from Tins::IfPredicate

#if?

Methods included from Tins::AskAndSend

#ask_and_send, #ask_and_send!, #ask_and_send_or_self, #ask_and_send_or_self!

Methods included from Tins::Responding

#responding?

Methods included from Tins::DeepDup

#deep_dup

Methods included from Tins::Complete

complete

Methods included from Tins::TempIO

#temp_io

Methods included from Tins::Attempt

#attempt

Methods included from Tins::Expose

#expose

Methods included from Tins::BlockSelf

block_self

Methods included from Tins::Eigenclass

#eigenclass_eval

Methods included from Tins::Deflect

#deflect, deflect?, #deflect?, #deflect_start, #deflect_stop

Methods included from Tins::ThreadLocal

#instance_thread_local, #thread_local

Methods included from Tins::Interpreter

#interpret, #interpret_with_binding

Methods included from Tins::ThreadGlobal

#instance_thread_global, #thread_global

Methods included from Tins::Null::Kernel

#null, #null_plus

Methods included from Tins::To

#to

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, &named_block) ⇒ Object



4
5
6
7
8
9
10
11
# File 'lib/tins/xt/named.rb', line 4

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