Module: Sinatra::Sugar::InstanceMethods

Defined in:
lib/sinatra/sugar.rb

Instance Method Summary collapse

Instance Method Details

#rootObject

See BigBand::BasicExtentions::ClassMethods#root



69
70
71
# File 'lib/sinatra/sugar.rb', line 69

def root
  self.class.root
end

#root?Boolean

See BigBand::BasicExtentions::ClassMethods#root?

Returns:

  • (Boolean)


74
75
76
# File 'lib/sinatra/sugar.rb', line 74

def root?
  self.class.root
end

#root_glob(*args, &block) ⇒ Object

See BigBand::BasicExtentions::ClassMethods#root_path



64
65
66
# File 'lib/sinatra/sugar.rb', line 64

def root_glob(*args, &block)
  self.class.root_glob(*args, &block)
end

#root_path(*args) ⇒ Object

See BigBand::BasicExtentions::ClassMethods#root_path



59
60
61
# File 'lib/sinatra/sugar.rb', line 59

def root_path(*args)
  self.class.root_path(*args)
end