Module: Spandex

Defined in:
lib/spandex.rb,
lib/spandex/page.rb,
lib/spandex/finder.rb,
lib/spandex/version.rb

Defined Under Namespace

Classes: Finder, Page

Constant Summary collapse

VERSION =
"0.0.7"

Class Method Summary collapse

Class Method Details

.method_missing(method, *args, &block) ⇒ Object



11
12
13
14
# File 'lib/spandex.rb', line 11

def method_missing(method, *args, &block)
  return super unless new.respond_to?(method)
  new.send(method, *args, &block)
end

.new(base_path, render_options = {}) ⇒ Object



7
8
9
# File 'lib/spandex.rb', line 7

def new(base_path, render_options = {})
  Spandex::Finder.new(base_path, render_options)
end

.respond_to?(method, include_private = false) ⇒ Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/spandex.rb', line 16

def respond_to?(method, include_private = false)
  new.respond_to?(method, include_private) || super(method, include_private)
end