Ruby for Rails phần 7 doc
... "b", "y"] Another common use case for split is performing a conversion from a flat, text- based configuration file to a Ruby data format—array, hash, or something fancier What are ... of Ruby built-in methods take regular expressions as arguments and perform selection or modification on one or more string objects. Regular expressions are used, for example, to sca...
Ngày tải lên: 06/08/2014, 09:20
... Introducing Linux Security 471 Chapter 2: Securing a Linux Host 485 Chapter 3: Improving Network Security 501 Chapter 4: Performing Computer Security Audits 5 17 TEAM LinG - Live, Informative, Non-cost ... Live, Informative, Non-cost and Genuine ! Updating Linux Applications Online 440 Table 4-2 Yum Commands Command What Yum Does for This Command check-update Checks for available update...
Ngày tải lên: 23/07/2014, 23:20
Ruby for Rails phần 1 pps
... 85 The irb-based Rails application console 89 3.4 Summary 90 Ruby for Rails RUBY TECHNIQUES FOR RAILS DEVELOPERS DAVID A. BLACK MANNING Greenwich (74 ° w. long.) vii PART ITHE RUBY/ RAILS LANDSCAPE ... design and naming 170 Mix-ins and/or inheritance 171 ■ Modular organization in Rails source and boilerplate code 173 6.4 Summary 176 7 The default object (self) and...
Ngày tải lên: 06/08/2014, 09:20
Ruby for Rails phần 2 ppsx
... in Ruby and shipped with Ruby) , lightTPD CGI Library CGI data processing routines Parses incoming form data Part of the Ruby standard library ERb "Embedded Ruby& quot; Templating system for ... extension (require it) ruby -rprofile version Show Ruby version information ruby version A Rails application walk-through 45 Initializing the databases To create the database fo...
Ngày tải lên: 06/08/2014, 09:20
Ruby for Rails phần 3 pps
... definition 72 CHAPTER 3 Ruby- informed Rails development because of Ruby (Ruby doesn’t care), but because leaving the parentheses off is a standard Rails convention. The common idioms you use in Rails ... an infrastructure for doing so (helper methods and predefined hooks) and in cases where you’re writing methods from D E B C D E 74 CHAPTER 3 Ruby- informed Rails developme...
Ngày tải lên: 06/08/2014, 09:20
Ruby for Rails phần 4 pptx
... inheritance bones. 5.6.1 Inheritance and Rails engineering Inheritance is one of the key organizational techniques for Rails program design and the design of the Rails framework. You can see key cases ... your Ruby programs. Sure enough, Ruby gives you a full suite of programming techniques for creat- ing objects on a batch or factory basis. You don’t have to define a separate...
Ngày tải lên: 06/08/2014, 09:20
Ruby for Rails phần 5 pdf
... value. 177 The default object (self) and scope In this chapter ■ The role of the current or default object, self ■ Scoping rules for variables and constants ■ Method access rules 196 CHAPTER 7 The ... use an absolute path for a file. This may happen if you create a class or module with a name that’s similar to the name of a Ruby built-in class or module. For example, Ruby come...
Ngày tải lên: 06/08/2014, 09:20
Ruby for Rails phần 6 pdf
... huge roles in Ruby and Rails. Some of the founda- tional Ruby libraries upon which Rails is built use hashes to pass data around; in particular, the Ruby CGI library makes your CGI form data available ... of the irb session format for the code examples, and you can often try the examples with small variations to get a feel for how Ruby behaves. 9.1 Ruby s literal constructors...
Ngày tải lên: 06/08/2014, 09:20
Ruby for Rails phần 8 pdf
... intertwined.) TIP LOOK AT THE ONLINE RAILS API DOCUMENTATION Chapter 17 includes detailed discussion of navigating the online Rails API documentation at http://api.rubyonrails.org. But even now, don’t ... arity. Ruby offers several variations on the callable method-or-function theme. We’ll look next at another form of anonymous function: the lambda. B Part 4 Rails through Ruby,...
Ngày tải lên: 06/08/2014, 09:20