class DissociatedIntrospection::RubyClass::Def
Attributes
ruby_code[R]
@return [DissociatedIntrospection::RubyClass]
Public Class Methods
new(ruby_code)
click to toggle source
@param [DissociatedIntrospection::RubyClass] ruby_code
# File lib/dissociated_introspection/ruby_class/def.rb, line 5 def initialize(ruby_code) @ruby_code = ruby_code end
Public Instance Methods
arguments()
click to toggle source
@return [DissociatedIntrospection::RubyClass]
# File lib/dissociated_introspection/ruby_class/def.rb, line 15 def arguments RubyCode.build_from_ast(ruby_code.ast.children[1]) end
ast()
click to toggle source
@return [Parser::AST]
# File lib/dissociated_introspection/ruby_class/def.rb, line 34 def ast ruby_code.ast end
body()
click to toggle source
@return [DissociatedIntrospection::RubyClass]
# File lib/dissociated_introspection/ruby_class/def.rb, line 20 def body RubyCode.build_from_ast(ruby_code.ast.children[2]) end
name()
click to toggle source
@return [Symbol, NilClass]
# File lib/dissociated_introspection/ruby_class/def.rb, line 10 def name ruby_code.ast.children[0] end
source()
click to toggle source
@return [String]
# File lib/dissociated_introspection/ruby_class/def.rb, line 25 def source ruby_code.source end
to_s()
click to toggle source
# File lib/dissociated_introspection/ruby_class/def.rb, line 29 def to_s ruby_code.source end