Class: Rbind::GeneratorRuby::HelperBase

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

Instance Attribute Summary collapse

Attributes included from Logger

#log

Instance Method Summary collapse

Methods included from Logger

extend_object

Constructor Details

#initialize(name, root) ⇒ HelperBase

Returns a new instance of HelperBase.



275
276
277
278
# File 'lib/rbind/generator_ruby.rb', line 275

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

Instance Attribute Details

#nameObject

Returns the value of attribute name.



274
275
276
# File 'lib/rbind/generator_ruby.rb', line 274

def name
  @name
end

Instance Method Details

#bindingObject



284
285
286
# File 'lib/rbind/generator_ruby.rb', line 284

def binding
    Kernel.binding
end

#full_nameObject



280
281
282
# File 'lib/rbind/generator_ruby.rb', line 280

def full_name
    @root.full_name
end