Class: Danica::Function
- Includes:
- ActiveModel::Model
- Defined in:
- lib/danica/function.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
Attributes inherited from Common
Instance Method Summary collapse
-
#initialize(*args) ⇒ Function
constructor
A new instance of Function.
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) = args. super({ variables: args.flatten }.merge()) end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/danica/function.rb', line 5 def name @name end |