Module: Stupidedi::Reader

Defined in:
lib/stupidedi/reader.rb,
lib/stupidedi/reader/input.rb,
lib/stupidedi/reader/result.rb,
lib/stupidedi/reader/position.rb,
lib/stupidedi/reader/separators.rb,
lib/stupidedi/reader/segment_dict.rb,
lib/stupidedi/reader/token_reader.rb,
lib/stupidedi/reader/stream_reader.rb,
lib/stupidedi/reader/input/file_input.rb,
lib/stupidedi/reader/tokens/segment_tok.rb,
lib/stupidedi/reader/input/abstract_input.rb,
lib/stupidedi/reader/input/delegated_input.rb,
lib/stupidedi/reader/tokens/simple_element_tok.rb,
lib/stupidedi/reader/tokens/repeated_element_tok.rb,
lib/stupidedi/reader/tokens/component_element_tok.rb,
lib/stupidedi/reader/tokens/composite_element_tok.rb

Defined Under Namespace

Modules: Input, Result Classes: AbstractInput, ComponentElementTok, CompositeElementTok, DelegatedInput, Failure, FileInput, Position, RepeatedElementTok, SegmentDict, SegmentTok, Separators, SimpleElementTok, StreamReader, Success, TokenReader

Constructors collapse

Class Method Summary collapse

Class Method Details

.build(input) ⇒ StreamReader

Returns:


66
67
68
# File 'lib/stupidedi/reader.rb', line 66

def build(input)
  StreamReader.new(Input.build(input))
end

.is_control_character?(character) ⇒ Boolean

Returns true if character does not belong to the extended or basic character set.

Returns:

  • (Boolean)

See Also:

  • B.1.1.2.4 Control Characters

77
78
79
# File 'lib/stupidedi/reader.rb', line 77

def is_control_character?(character)
  not H_EITHER.include?(character)
end