Class: Rbind::GeneratorRuby::HelperBase

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

Direct Known Subclasses

RBindHelper, RTypeHelper

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, root) ⇒ HelperBase

Returns a new instance of HelperBase.



127
128
129
130
# File 'lib/rbind/generator_ruby.rb', line 127

def initialize(name,root)
    @name = name.to_s
    @root = root
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



126
127
128
# File 'lib/rbind/generator_ruby.rb', line 126

def name
  @name
end

Instance Method Details

#bindingObject



136
137
138
# File 'lib/rbind/generator_ruby.rb', line 136

def binding
    Kernel.binding
end

#full_nameObject



132
133
134
# File 'lib/rbind/generator_ruby.rb', line 132

def full_name
    @root.full_name
end