Class: Huebot::Program::Src
- Inherits:
-
Struct
- Object
- Struct
- Huebot::Program::Src
- Defined in:
- lib/huebot/program.rb
Overview
Struct for storing a program’s Intermediate Representation and source filepath.
Instance Attribute Summary collapse
-
#api_version ⇒ Float
API version.
-
#filepath ⇒ String
The current value of filepath.
-
#tokens ⇒ Hash
The current value of tokens.
Instance Method Summary collapse
Instance Attribute Details
#api_version ⇒ Float
API version
10 11 12 |
# File 'lib/huebot/program.rb', line 10 def api_version @api_version end |
#filepath ⇒ String
Returns the current value of filepath.
10 11 12 |
# File 'lib/huebot/program.rb', line 10 def filepath @filepath end |
#tokens ⇒ Hash
Returns the current value of tokens.
10 11 12 |
# File 'lib/huebot/program.rb', line 10 def tokens @tokens end |
Instance Method Details
#default_name ⇒ Object
11 12 13 |
# File 'lib/huebot/program.rb', line 11 def default_name File.basename(filepath, ".*") end |