Class: BaseLine

Inherits:
Object
  • Object
show all
Defined in:
lib/spacify.rb

Direct Known Subclasses

RawLine, SpacerLine

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ BaseLine

Returns a new instance of BaseLine.



12
13
14
# File 'lib/spacify.rb', line 12

def initialize data
  @data = data
end

Instance Attribute Details

#attribute_padding_by_nameObject

Returns the value of attribute attribute_padding_by_name.



11
12
13
# File 'lib/spacify.rb', line 11

def attribute_padding_by_name
  @attribute_padding_by_name
end

#attribute_sort_orderObject

Returns the value of attribute attribute_sort_order.



11
12
13
# File 'lib/spacify.rb', line 11

def attribute_sort_order
  @attribute_sort_order
end

#dataObject (readonly)

Returns the value of attribute data.



10
11
12
# File 'lib/spacify.rb', line 10

def data
  @data
end

Instance Method Details

#parse?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/spacify.rb', line 16

def parse?
  false
end

#sort_with(hash) ⇒ Object



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

def sort_with hash
  nil
end

#to_sObject



20
21
22
# File 'lib/spacify.rb', line 20

def to_s
  @data
end