Class: SFRP::Low::Typedef

Inherits:
Element
  • Object
show all
Defined in:
lib/sfrp/low/element.rb

Instance Method Summary collapse

Methods inherited from Element

#to_s

Constructor Details

#initialize(str) ⇒ Typedef

Returns a new instance of Typedef.



107
108
109
# File 'lib/sfrp/low/element.rb', line 107

def initialize(str)
  @str = str
end

Instance Method Details

#pretty_codeObject



111
112
113
# File 'lib/sfrp/low/element.rb', line 111

def pretty_code
  "typedef #{@str};"
end