Methods

FFI::Generator::Constant

Public Class Methods

new(params = { }) click to toggle source
# File lib/generator/constant.rb, line 4
def initialize(params = { })
  super
  @name, @value = get_attr('sym_name'), get_attr('value')
end

Public Instance Methods

to_s() click to toggle source
# File lib/generator/constant.rb, line 8
def to_s
  @indent_str + "#{@name} = #{sanitize!(@value)}"        
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.