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.



253
254
255
256
# File 'lib/rbind/generator_ruby.rb', line 253

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

Instance Attribute Details

#nameObject

Returns the value of attribute name.



252
253
254
# File 'lib/rbind/generator_ruby.rb', line 252

def name
  @name
end

Instance Method Details

#bindingObject



262
263
264
# File 'lib/rbind/generator_ruby.rb', line 262

def binding
    Kernel.binding
end

#full_nameObject



258
259
260
# File 'lib/rbind/generator_ruby.rb', line 258

def full_name
    @root.full_name
end