Class: Rbind::GeneratorRuby::HelperBase

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, root) ⇒ HelperBase

Returns a new instance of HelperBase.



174
175
176
177
# File 'lib/rbind/generator_ruby.rb', line 174

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

Instance Attribute Details

#nameObject

Returns the value of attribute name.



173
174
175
# File 'lib/rbind/generator_ruby.rb', line 173

def name
  @name
end

Instance Method Details

#bindingObject



183
184
185
# File 'lib/rbind/generator_ruby.rb', line 183

def binding
    Kernel.binding
end

#full_nameObject



179
180
181
# File 'lib/rbind/generator_ruby.rb', line 179

def full_name
    @root.full_name
end