<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: f-asa</title>
    <description>The latest articles on DEV Community by f-asa (@fasa).</description>
    <link>https://dev.to/fasa</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F640577%2F2905940a-9848-4ca6-9dcf-bed7c208d445.png</url>
      <title>DEV Community: f-asa</title>
      <link>https://dev.to/fasa</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/fasa"/>
    <language>en</language>
    <item>
      <title>error Command "webpack" not found</title>
      <dc:creator>f-asa</dc:creator>
      <pubDate>Sun, 30 May 2021 22:35:06 +0000</pubDate>
      <link>https://dev.to/fasa/error-command-webpack-not-found-246a</link>
      <guid>https://dev.to/fasa/error-command-webpack-not-found-246a</guid>
      <description>&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[Webpacker] Compiling...
[Webpacker] Compilation failed:
yarn run v1.22.10
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.


error Command "webpack" not found.

Completed 500 Internal Server Error in 705ms (ActiveRecord: 0.3ms | Allocations: 27913)



ActionView::Template::Error (Webpacker can't find application.js in /home/fasa/clear/clusterpbx-manager/clusterpbx-manager/public/packs/manifest.json. Possible causes:
1. You want to set webpacker.yml value of compile to true for your environment
   unless you are using the `webpack -w` or the webpack-dev-server.
2. webpack has not yet re-run to reflect updates.
3. You have misconfigured Webpacker's config/webpacker.yml file.
4. Your webpack configuration is not creating a manifest.
Your manifest contains:
{
}
):
     6:     &amp;lt;%= csp_meta_tag %&amp;gt;
     7: 
     8:     &amp;lt;%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %&amp;gt;
     9:     &amp;lt;%= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload' %&amp;gt;
    10:   &amp;lt;/head&amp;gt;
    11: 
    12:   &amp;lt;body&amp;gt;

app/views/layouts/application.html.erb:9

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;add this to package.json, then &lt;strong&gt;npm install&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;    "webpack": "^5.38.1",
    "webpack-cli": "^4.7.0",
    "webpack-dev-server": "^3.11.0",
    "babel": "^5.8.23",
    "babel-core": "^5.0.0",
    "babel-loader": "^5.3.2"

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>rails</category>
      <category>webpack</category>
      <category>errors</category>
    </item>
    <item>
      <title>Variables in a Ruby Class</title>
      <dc:creator>f-asa</dc:creator>
      <pubDate>Sun, 30 May 2021 22:14:52 +0000</pubDate>
      <link>https://dev.to/fasa/variables-in-a-ruby-class-2bjl</link>
      <guid>https://dev.to/fasa/variables-in-a-ruby-class-2bjl</guid>
      <description>&lt;p&gt;&lt;a href="https://www.tutorialspoint.com/ruby/ruby_classes.htm"&gt;source&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Ruby provides four types of variables −&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Local Variables&lt;/strong&gt; − Local variables are the variables that are defined in a method. Local variables are not available outside the method. You will see more details about method in subsequent chapter. Local variables begin with a lowercase letter or _.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Instance Variables&lt;/strong&gt; − Instance variables are available across methods for any particular instance or object. That means that instance variables change from object to object. Instance variables are preceded by the at sign (@) followed by the variable name.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Class Variables&lt;/strong&gt; − Class variables are available across different objects. A class variable belongs to the class and is a characteristic of a class. They are preceded by the sign @@ and are followed by the variable name.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Global Variables&lt;/strong&gt; − Class variables are not available across classes. If you want to have a single variable, which is available across classes, you need to define a global variable. The global variables are always preceded by the dollar sign ($).&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
