Module: Danica::Expressable
- Extended by:
- ActiveSupport::Concern
- Includes:
- VariablesHolder
- Included in:
- Expression, Function
- Defined in:
- lib/danica/expressable.rb
Instance Method Summary collapse
Methods included from VariablesHolder
Methods included from Common
#content, #formatted, #gnu, #tex, #to, #to_f, #to_gnu, #to_tex, #valued?
Instance Method Details
#initialize(*args) ⇒ Object
33 34 35 36 37 38 39 40 41 |
# File 'lib/danica/expressable.rb', line 33 def initialize(*args) = args. attributes = { variables: args.flatten }.merge() attributes.each do |key, value| public_send("#{key}=", value) end end |