Class: Castiel::Elements::BaseElement

Inherits:
Object
  • Object
show all
Defined in:
lib/castiel/elements/base_element.rb

Direct Known Subclasses

DateElement, HourElement, SymbolElement

Instance Method Summary collapse

Instance Method Details

#evaluate(element, context = nil) ⇒ Object



9
10
11
# File 'lib/castiel/elements/base_element.rb', line 9

def evaluate(element, context = nil)
  element
end

#match?(element, context = nil) ⇒ Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/castiel/elements/base_element.rb', line 5

def match?(element, context = nil)
  true
end