Class: Stupidedi::Versions::Common::ElementTypes::FixnumVal::Empty
- Inherits:
-
Valid
- Object
- Stupidedi::Values::AbstractVal
- Stupidedi::Values::AbstractElementVal
- Stupidedi::Values::SimpleElementVal
- Stupidedi::Versions::Common::ElementTypes::FixnumVal
- Valid
- Stupidedi::Versions::Common::ElementTypes::FixnumVal::Empty
- Defined in:
- lib/stupidedi/versions/common/element_types/nn.rb
Overview
Instance Attribute Summary
Attributes inherited from Stupidedi::Values::SimpleElementVal
Instance Method Summary collapse
- #empty? ⇒ Boolean
-
#inspect ⇒ String
:nocov:.
- #to_s ⇒ String
- #to_x12(truncate = true) ⇒ String
- #value
Methods inherited from Valid
#==, #coerce, #copy, #map, #valid?
Methods inherited from Stupidedi::Versions::Common::ElementTypes::FixnumVal
empty, #numeric?, #too_long?, #too_short?, value
Methods inherited from Stupidedi::Values::SimpleElementVal
#allowed?, #component?, #copy, #date?, #id?, #initialize, #leaf?, #numeric?, #simple?, #string?, #time?, #too_long?, #too_short?, #valid?
Methods inherited from Stupidedi::Values::AbstractElementVal
Methods inherited from Stupidedi::Values::AbstractVal
#blank?, #characters, #component?, #composite?, #definition, #descriptor, #element?, #functional_group?, #interchange?, #invalid?, #leaf?, #loop?, #present?, #repeated?, #segment?, #separator?, #simple?, #size, #table?, #transaction_set?, #transmission?, #valid?
Methods included from Color
Constructor Details
This class inherits a constructor from Stupidedi::Values::SimpleElementVal
Instance Method Details
#empty? ⇒ Boolean
155 156 157 |
# File 'lib/stupidedi/versions/common/element_types/nn.rb', line 155 def empty? true end |
#inspect ⇒ String
:nocov:
161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 |
# File 'lib/stupidedi/versions/common/element_types/nn.rb', line 161 def inspect id = definition.bind do |d| "[#{"% 5s" % d.id}: #{d.name}]".bind do |s| if usage.forbidden? ansi.forbidden(s) elsif usage.required? ansi.required(s) else ansi.optional(s) end end end ansi.element("Nn.empty#{id}") end |
#to_s ⇒ String
179 180 181 |
# File 'lib/stupidedi/versions/common/element_types/nn.rb', line 179 def to_s "" end |
#to_x12(truncate = true) ⇒ String
184 185 186 |
# File 'lib/stupidedi/versions/common/element_types/nn.rb', line 184 def to_x12(truncate = true) "" end |
#value
151 152 153 |
# File 'lib/stupidedi/versions/common/element_types/nn.rb', line 151 def value nil end |