Class: Stupidedi::Interchanges::ElementTypes::SpecialVal::Empty

Instance Attribute Summary

Attributes inherited from Values::SimpleElementVal

#position, #usage

Instance Method Summary collapse

Methods inherited from Versions::Common::ElementTypes::StringVal::Empty

#inspect, #to_date, #value

Methods inherited from Versions::Common::ElementTypes::StringVal::Valid

#==, #coerce, #copy, #map, #valid?

Methods included from Versions::Common::ElementTypes::Operators::Relational

#relational_operators

Methods included from Versions::Common::ElementTypes::Operators::Unary

#unary_operators

Methods included from Versions::Common::ElementTypes::Operators::Wrappers

#wrappers

Methods inherited from Versions::Common::ElementTypes::StringVal

empty, #string?, #too_long?, #too_short?, value

Methods inherited from Values::SimpleElementVal

#allowed?, #component?, #copy, #date?, #id?, #initialize, #leaf?, #numeric?, #simple?, #string?, #time?, #to_s, #too_long?, #too_short?, #valid?

Methods inherited from Values::AbstractElementVal

#element?, #size

Methods inherited from Values::AbstractVal

#blank?, #characters, #component?, #composite?, #definition, #descriptor, #element?, #empty?, #functional_group?, #interchange?, #invalid?, #leaf?, #loop?, #present?, #repeated?, #segment?, #separator?, #simple?, #size, #table?, #transaction_set?, #transmission?, #valid?

Methods included from Color

ansi, #ansi

Methods included from Stupidedi::Inspect

#inspect

Constructor Details

This class inherits a constructor from Stupidedi::Values::SimpleElementVal

Instance Method Details

#to_x12String

Returns:

  • (String)

35
36
37
# File 'lib/stupidedi/interchanges/element_types/special_val.rb', line 35

def to_x12
  " " * definition.min_length
end