Class: Ryan::ClassFunc

Inherits:
Func
  • Object
show all
Defined in:
lib/ryan/class_func.rb

Instance Attribute Summary

Attributes inherited from Func

#_private, #sexp

Instance Method Summary collapse

Methods inherited from Func

#assignments, #conditions, #find_assignments, #initialize, #map_args

Constructor Details

This class inherits a constructor from Ryan::Func

Instance Method Details

#argsObject



6
7
8
# File 'lib/ryan/class_func.rb', line 6

def args
  map_args(sexp[3]) if sexp[3].first == :args
end

#class?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/ryan/class_func.rb', line 10

def class?
  true
end

#nameObject



2
3
4
# File 'lib/ryan/class_func.rb', line 2

def name
  sexp[2]
end