Module: DocumentMapper

Defined in:
lib/document_mapper/query.rb,
lib/document_mapper/errors.rb,
lib/document_mapper/to_html.rb,
lib/document_mapper/version.rb,
lib/document_mapper/document.rb,
lib/document_mapper/selector.rb,
lib/document_mapper/constants.rb,
lib/document_mapper/yaml_parsing.rb,
lib/document_mapper/attribute_methods.rb

Defined Under Namespace

Modules: AttributeMethods, Document, ToHtml, YamlParsing Classes: Query, Selector, YamlParsingError

Constant Summary collapse

FileNotFoundError =
Class.new StandardError
OperatorNotSupportedError =
Class.new StandardError
VERSION =
'0.2.2'
OPERATOR_MAPPING =
{
  'equal' => :==,
  'gt' => :>,
  'gte' => :>=,
  'in' => :in?,
  'include' => :include?,
  'lt' => :<,
  'lte' => :<=
}.freeze
VALID_OPERATORS =
OPERATOR_MAPPING.keys
PERMITTED_CLASSES =
[
  Date,
  Symbol
].freeze