Module: Bade
- Defined in:
- lib/bade/runtime/utils/where.rb,
lib/bade.rb,
lib/bade/parser.rb,
lib/bade/runtime.rb,
lib/bade/version.rb,
lib/bade/ast/node.rb,
lib/bade/renderer.rb,
lib/bade/generator.rb,
lib/bade/optimizer.rb,
lib/bade/precompiled.rb,
lib/bade/ast/document.rb,
lib/bade/runtime/block.rb,
lib/bade/runtime/mixin.rb,
lib/bade/ast/node/tag_node.rb,
lib/bade/parser/parser_tag.rb,
lib/bade/parser/parser_text.rb,
lib/bade/ast/node/mixin_node.rb,
lib/bade/ast/node/value_node.rb,
lib/bade/parser/parser_lines.rb,
lib/bade/parser/parser_mixin.rb,
lib/bade/ast/node_registrator.rb,
lib/bade/ast/node/doctype_node.rb,
lib/bade/ast/string_serializer.rb,
lib/bade/runtime/render_binding.rb,
lib/bade/ast/node/key_value_node.rb,
lib/bade/parser/parser_constants.rb,
lib/bade/parser/parser_ruby_code.rb,
lib/bade/runtime/globals_tracker.rb,
lib/bade/ast/node/static_text_node.rb
Overview
Inspired by gist.github.com/wtaysom/1236979
Defined Under Namespace
Modules: AST, Runtime, Where Classes: Generator, Optimizer, Parser, Precompiled, Renderer
Constant Summary collapse
- VERSION =
'0.3.11'.freeze
- RubyGenerator =
backward compatibility
Generator
Class Method Summary collapse
Class Method Details
.where_is(klass, method = nil) ⇒ [String, Integer], String
104 105 106 107 108 109 110 111 112 113 114 |
# File 'lib/bade/runtime/utils/where.rb', line 104 def self.where_is(klass, method = nil) if method begin Where.instance_method?(klass, method) rescue NameError Where.method?(klass, method) end else Where.class_primarily?(klass) end end |