class Object

Public Instance Methods

app() click to toggle source
# File lib/daiku/_app/spec/app_spec.rb, line 10
def app
  App.new
end
try(*a) { |self| ... } click to toggle source
# File lib/daiku/core_ext.rb, line 4
def try(*a, &b)
  if a.empty? && block_given?
    yield self
  else
    public_send(*a, &b) if respond_to?(a.first)
  end
end
try!(*a) { |self| ... } click to toggle source
# File lib/daiku/core_ext.rb, line 12
def try!(*a, &b)
  if a.empty? && block_given?
    yield self
  else
    public_send(*a, &b)
  end
end