Module: Flexparser

Defined in:
lib/flexparser.rb,
lib/flexparser/errors.rb,
lib/flexparser/xpaths.rb,
lib/flexparser/version.rb,
lib/flexparser/fragment.rb,
lib/flexparser/tag_parser.rb,
lib/flexparser/class_methods.rb,
lib/flexparser/configuration.rb,
lib/flexparser/empty_fragment.rb,
lib/flexparser/anonymous_parser.rb,
lib/flexparser/fragment_builder.rb,
lib/flexparser/collection_parser.rb

Overview

Main module that, when included, provides the including class access to the property building structure.

Defined Under Namespace

Modules: ClassMethods Classes: AmbiguousNamingError, AnonymousParser, CollectionParser, Configuration, EmptyFragment, Error, Fragment, FragmentBuilder, RequiredMissingError, TagParser, XPaths

Constant Summary collapse

VERSION =
'1.0.3'.freeze

Class Method Summary collapse

Class Method Details

.configurationObject


24
25
26
# File 'lib/flexparser.rb', line 24

def configuration
  @configuration ||= Configuration.new
end

.configure {|configuration| ... } ⇒ Object

Yields:


28
29
30
31
# File 'lib/flexparser.rb', line 28

def configure
  yield(configuration)
  configuration
end

.included(base) ⇒ Object


34
35
36
# File 'lib/flexparser.rb', line 34

def self.included(base)
  base.extend ClassMethods
end