Module: Spandex
- Defined in:
- lib/spandex.rb,
lib/spandex/page.rb,
lib/spandex/finder.rb,
lib/spandex/version.rb
Defined Under Namespace
Constant Summary collapse
- VERSION =
"0.0.7"
Class Method Summary collapse
- .method_missing(method, *args, &block) ⇒ Object
- .new(base_path, render_options = {}) ⇒ Object
- .respond_to?(method, include_private = false) ⇒ Boolean
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, = {}) Spandex::Finder.new(base_path, ) end |
.respond_to?(method, include_private = false) ⇒ 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 |