Class: Danica::Function

Inherits:
Common
  • Object
show all
Includes:
ActiveModel::Model
Defined in:
lib/danica/function.rb

Instance Attribute Summary collapse

Attributes inherited from Common

#variables

Instance Method Summary collapse

Methods inherited from Common

#calculate, #to_f, #to_gnu, #to_tex, #valued?, variables, #variables_hash, variables_names, #variables_value_hash

Constructor Details

#initialize(*args) ⇒ Function

Returns a new instance of Function.



7
8
9
10
11
# File 'lib/danica/function.rb', line 7

def initialize(*args)
  options = args.extract_options!

  super({ variables: args.flatten }.merge(options))
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



5
6
7
# File 'lib/danica/function.rb', line 5

def name
  @name
end