class Pohoda::Parsers::Prm::CtrlDefType

Public Instance Methods

label() click to toggle source
# File lib/pohoda/parsers/prm/ctrl_def_type.rb, line 15
def label
  at 'prm:label'
end
label_attributes() click to toggle source
# File lib/pohoda/parsers/prm/ctrl_def_type.rb, line 19
def label_attributes
  attributes_at 'prm:label'
end
name() click to toggle source
# File lib/pohoda/parsers/prm/ctrl_def_type.rb, line 7
def name
  at 'prm:name'
end
name_attributes() click to toggle source
# File lib/pohoda/parsers/prm/ctrl_def_type.rb, line 11
def name_attributes
  attributes_at 'prm:name'
end
rect() click to toggle source
# File lib/pohoda/parsers/prm/ctrl_def_type.rb, line 23
def rect
  at 'prm:rect'
end
rect_attributes() click to toggle source
# File lib/pohoda/parsers/prm/ctrl_def_type.rb, line 27
def rect_attributes
  attributes_at 'prm:rect'
end
style() click to toggle source
# File lib/pohoda/parsers/prm/ctrl_def_type.rb, line 39
def style
  at 'prm:style'
end
style_attributes() click to toggle source
# File lib/pohoda/parsers/prm/ctrl_def_type.rb, line 43
def style_attributes
  attributes_at 'prm:style'
end
to_h() click to toggle source
# File lib/pohoda/parsers/prm/ctrl_def_type.rb, line 47
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:name] = name if has? 'prm:name'
  hash[:name_attributes] = name_attributes if has? 'prm:name'
  hash[:label] = label if has? 'prm:label'
  hash[:label_attributes] = label_attributes if has? 'prm:label'
  hash[:rect] = rect if has? 'prm:rect'
  hash[:rect_attributes] = rect_attributes if has? 'prm:rect'
  hash[:type] = type if has? 'prm:type'
  hash[:type_attributes] = type_attributes if has? 'prm:type'
  hash[:style] = style if has? 'prm:style'
  hash[:style_attributes] = style_attributes if has? 'prm:style'

  hash
end
type() click to toggle source
# File lib/pohoda/parsers/prm/ctrl_def_type.rb, line 31
def type
  at 'prm:type'
end
type_attributes() click to toggle source
# File lib/pohoda/parsers/prm/ctrl_def_type.rb, line 35
def type_attributes
  attributes_at 'prm:type'
end