Class: Patm::Pattern::Any
- Inherits:
-
Patm::Pattern
- Object
- Patm::Pattern
- Patm::Pattern::Any
- Defined in:
- lib/patm.rb
Instance Method Summary collapse
- #compile_internal(free_index, target_name = "_obj") ⇒ Object
- #execute(match, obj) ⇒ Object
- #inspect ⇒ Object
Methods inherited from Patm::Pattern
#&, build_from, #compile, #rest?
Instance Method Details
#compile_internal(free_index, target_name = "_obj") ⇒ Object
185 186 187 188 189 190 191 |
# File 'lib/patm.rb', line 185 def compile_internal(free_index, target_name = "_obj") [ "true", [], free_index ] end |
#execute(match, obj) ⇒ Object
183 |
# File 'lib/patm.rb', line 183 def execute(match, obj); true; end |
#inspect ⇒ Object
184 |
# File 'lib/patm.rb', line 184 def inspect; 'ANY'; end |