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.



205
206
207
208
# File 'lib/rbind/generator_ruby.rb', line 205

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

Instance Attribute Details

#nameObject

Returns the value of attribute name.



204
205
206
# File 'lib/rbind/generator_ruby.rb', line 204

def name
  @name
end

Instance Method Details

#bindingObject



214
215
216
# File 'lib/rbind/generator_ruby.rb', line 214

def binding
    Kernel.binding
end

#full_nameObject



210
211
212
# File 'lib/rbind/generator_ruby.rb', line 210

def full_name
    @root.full_name
end